Repository navigation
Conversation
rib
added a commit
to rust-mobile/android-activity
that referenced
this pull request
Oct 22, 2022
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
rib
added a commit
to rust-mobile/android-activity
that referenced
this pull request
Oct 22, 2022
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
rib
added a commit
to rust-mobile/android-activity
that referenced
this pull request
Oct 23, 2022
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
Closed
Atilogit
requested review from
MarijnS95,
kchibisov,
madsmtm,
msiglreith and
notgull
as code owners
February 27, 2024 19:28
|
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 |
This branch has not been deployed
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.
CHANGELOG.mdif 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