-
Notifications
You must be signed in to change notification settings - Fork 914
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
Pen and pressure support for Windows and Android #2396
base: master
Are you sure you want to change the base?
Conversation
This maintains compatibility with the `ndk` crate's `Pointer` API Ref: rust-mobile/ndk#323 This will also be required for enabling pen pressure support to Winit, re: rust-windowing/winit#2396
This maintains compatibility with the `ndk` crate's `Pointer` API Ref: rust-mobile/ndk#323 This will also be required for enabling pen pressure support to Winit, re: rust-windowing/winit#2396
This maintains compatibility with the `ndk` crate's `Pointer` API Ref: rust-mobile/ndk#323 This will also be required for enabling pen pressure support to Winit, re: rust-windowing/winit#2396
I think this functionality would greatly benefit from the use of WinRT either as a supplement of the Win32 calls on Windows to get the pen information or to replace them completely (keeping potentially both with conditional flags for different windows version if version compatibility is too much of an issue otherwise). Indeed on Windows :
I'm testing these changes (POC at this point, I'm only printing out the info) here : https://github.com/Doublonmousse/winit/tree/winit-pen |
Note: This does not implement the double tap functionality of Apple Pens |
CHANGELOG.md
if knowledge of this change could be valuable to usersAbout the TODO for getToolType:
My PR for the ndk repo #323 needs to go through before this can be implemented.
Using the event source worked reliably on my devices so this workaround should be good for now.
This relates to #99