-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Palm Rejection for Touchpad #4
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Rename `Remapper` to `KeyboardRemapper` - Rename `RuinputDevicePatched` to `UinputKeyboard`
- Add `RemapTouchpadInput` plugin - Subscribe touchpad events from remapper - Send events to buffer - Add `TouchpadRemapper` class - Remap touchpad events - Send remapped events to virtual touchpad - Add `UinputTouchpad` class - Create virtual touchpad - Set absinfo using `eviocgabs` - Add `exe/fusuma-touchpad-remap` executable - Add `lib/fusuma/plugin/inputs/remap_touchpad_input.yml` config file
- add layer to remap keyboard input - send current layer to remap keyboard input - detect context with current layer for thumbsense
Previously, it was acquired by readline with the default read_from_io, and the contents of the record were separated by line breaks. Overriding read_from_io allows you to read MessagePack data with `\n`
- fusuma >= 3.4 - override `Input#read_from_io` for including `\n` in msgpack stream - fusuma-plugin-keypress >= 0.11.0 - use Events::Records::KeypressRecord.new with `layer`
- Update palm detection logic and move it to separate class
- Override read_from_io in input plugin to unpack received data - In input plugin, it was separated by newline code with `io.readline(chomp: true)` - Override read_from_io and change to receive with `MessagePack.unpack(io)` - However, `10` is included when receiving - Change to send without including newline - Change from `@fusuma_writer.puts` to `@fusuma_writer.write`
b85af93
to
16f0191
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Palm Rejection for Touchpad Remapper