feat(Windows): Add touch, pen, and keyboard scan-code support#48
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #48 +/- ##
==========================================
- Coverage 76.62% 76.07% -0.56%
==========================================
Files 18 19 +1
Lines 5156 5647 +491
Branches 2039 2169 +130
==========================================
+ Hits 3951 4296 +345
- Misses 1048 1192 +144
- Partials 157 159 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
|
c90df48 to
ccb52c4
Compare
Implements Windows touchscreen and pen tablet backends using the synthetic pointer injection API (Windows 10 1809+). Adds fractional absolute coordinates to mouse events, a US English keyboard layout scan-code table, and scan-code translation options to KeyboardKeyEvent. Introduces PointerTransition and PointerViewport types to the public API, and adds cancel_contact/leave_contact to Touchscreen.
ccb52c4 to
a6f3cc6
Compare
31f2fdf to
41bc2e6
Compare
b291f4f to
3463748
Compare
|
This file contains hidden or 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
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.



Description
Implements Windows touchscreen and pen tablet backends using the synthetic pointer injection API (Windows 10 1809+). Adds fractional absolute coordinates to mouse events, a US English keyboard layout scan-code table, and scan-code translation options to KeyboardKeyEvent. Introduces PointerTransition and PointerViewport types to the public API, and adds cancel_contact/leave_contact to Touchscreen.
Required for LizardByte/Sunshine#5368
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.