Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from pynput to libvinput #134

Merged
merged 11 commits into from
Aug 15, 2024
Merged

Conversation

xslendix
Copy link
Contributor

I need to update libvinput first to 1.4 so more types are available outside of the CFFI.

@xslendix xslendix marked this pull request as ready for review June 24, 2024 12:00
@xslendix
Copy link
Contributor Author

CI needs to be re-run because when I made my latest commit, 1.4 was not uploaded to PyPi, since I was doing development locally to be able to debug the library

@xslendix xslendix force-pushed the libvinput branch 3 times, most recently from f242250 to 6639305 Compare July 15, 2024 15:49
@jdestgermain jdestgermain self-requested a review July 15, 2024 17:22
Copy link
Contributor

@jdestgermain jdestgermain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
It looks to be working well for me, on Windows, when using dist folder. However, this is what I get when I run the windows installed setup file:

image

@xslendix
Copy link
Contributor Author

I think @Raymo111 should take care of the installer, I am not familiar with how PyInstaller works.

@jdestgermain jdestgermain self-requested a review July 19, 2024 17:22
jdestgermain
jdestgermain previously approved these changes Jul 19, 2024
Copy link
Contributor

@jdestgermain jdestgermain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested both the dist and installed versions on Windows and all seem to be functional.

SO nice to not have to wait for the start logging so long with the old freezing, lol.

@xslendix
Copy link
Contributor Author

macOS broke again im gonna cry

@xslendix xslendix force-pushed the libvinput branch 4 times, most recently from 171fad2 to fa33959 Compare July 20, 2024 20:20
@xslendix
Copy link
Contributor Author

Both Linux (X11) and macOS work.

@jdestgermain jdestgermain self-requested a review July 25, 2024 23:56
jdestgermain
jdestgermain previously approved these changes Jul 25, 2024
Copy link
Contributor

@jdestgermain jdestgermain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I re-tested to make sure that the mouse stuff was fixed, it looks good to me.

This is an easier approach IMHO.

Signed-off-by: Slendi <[email protected]>
nexus/Freqlog/Definitions.py Show resolved Hide resolved
nexus/__main__.py Outdated Show resolved Hide resolved
nexus/__main__.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
@xslendix xslendix requested a review from Raymo111 July 28, 2024 13:19
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
nexus/Freqlog/Freqlog.py Outdated Show resolved Hide resolved
Copy link
Member

@Raymo111 Raymo111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 more to go

xslendix and others added 2 commits August 14, 2024 02:32
Raymo111
Raymo111 previously approved these changes Aug 14, 2024
Copy link
Member

@Raymo111 Raymo111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved provided testing works

Edge case where a non-allowed char key (e.g. number) typed fast enough to be considered a chord is added as the first character of a word, and timing is not initialized. When a non-chord key (e.g. modifier key) is then pressed (to end the word), the word is logged but there is no timing associated with it, which would cause a crash.
@Raymo111 Raymo111 merged commit fdfaa2b into CharaChorder:master Aug 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants