-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Implement OS agnostic InputEventGesture
with Pan, Pinch, and Twist
#39055
base: master
Are you sure you want to change the base?
Conversation
e09c858
to
5a4e1e0
Compare
56a2c03
to
e2a2e75
Compare
This has been tested on X11 and android on 3.2 branch, see #37754 (test scene included). |
a367850
to
0338228
Compare
8882858
to
a8d760c
Compare
a8d760c
to
3d9111f
Compare
3d9111f
to
7256633
Compare
f8fae5d
to
42589f0
Compare
InputEventGesture
with Pan, Pinch, and Twist
Sorry for the delay reviewing this, and thanks for keeping at it! It's looking good and I agree that such an OS agnostic approach is the best to support these events on all platforms that support touch input. BTW, what does it imply for the current only platform-specific implementation for macOS? Would be good to have some review/feedback from @godotengine/input @RandomShaper, maybe also potential users of the feature like @HEAVYPOLY? |
b0cd6c4
to
ea14efe
Compare
No worries about the delay, there's a lot of PR, you do what you can. |
ea14efe
to
8719c77
Compare
2b9ee5d
to
e4479a2
Compare
I'm not convinced this is the right way forward. I agree that we should detect gestures in the Godot input system instead of in each individual platform i.e. this PR is better than #36953. And I agree that gestures should be named after their action not how they’re interpreted i.e. "Pinch" is better than "Magnify". However, I'm not convinced these are the gestures that we should be implementing. My concerns include, but are not limited to:
At the very least, I think there should be an agreed proposal to support which gestures, if any, we should implement. |
I've created godotengine/godot-proposals#4340 to facilitate the discussion. |
I think you're spot on in your opinion about naming, but at the same time these are supported on mac and work great. I don't see why that should block allowing that on other platforms. |
this is shamelessy inspired by Federico-Ciuffardi's job on #36953
implementation of thresholds to limit the amount of
emitted events will come later.
this is related to #13139 (and #37754 for 3.2 branch)
Bugsquad edit: Fixes #13139.