[Proposal] Add more details to apple touch events #3091
+12
−1
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 of Change
Set the
SKTouchDeviceType
more accurately for touch events on Mac or iOS.This would be very useful to me. Does it seem like a welcome change? I'd like to discuss before working any further.
Building on Mac wasn't working in my fork, so I developed this in another maui hello world project and developed and ran it there.
This diff simply elaborates the device type based on information already in touch event.
Bugs Fixed
API Changes
This will make touch events on iOS and Mac have touch types which are more accurately one of:
rather than always
Touch
Behavioral Changes
Same as the above API change.
Required skia PR
None.
PR Checklist