-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
rename touchpad to gesture, and add new gestures #13660
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good improvements. I am not thrilled about the platform-specific limitations, but this is an incremental improvement nonetheless.
there's a PR to add some of them to Wayland rust-windowing/winit#3656, and I started looking for Android |
crates/bevy_window/src/window.rs
Outdated
/// - Only used on iOS. | ||
/// - On macOS, they are recognized by default and can't be disabled. | ||
pub recognize_doubletap_gesture: bool, | ||
/// Sets whether this window recognize [`PanGesture`], with a number of fingers between the first value and the last. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be my ignorance, what does number of fingers between the first value and the last mean?
recognize_pan_gesture: Some((0, 5))
would this be like a whole hand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the number of fingers you use at the same time for the gesture, so (0, 5) would detect pan gesture with 0, 1, 2, 3, 4 or 5 fingers.
Co-authored-by: mike <[email protected]>
Objective
Solution
Testing
ios-rotation.mp4
Migration Guide
TouchpadMagnify
has been renamed toPinchGesture
TouchpadRotate
has been renamed toRotationGesture