Skip to content
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

Key and gesture bindings #134

Open
noktoborus opened this issue Feb 1, 2024 · 2 comments
Open

Key and gesture bindings #134

noktoborus opened this issue Feb 1, 2024 · 2 comments

Comments

@noktoborus
Copy link
Contributor

What is the best way to add gestures to the map?
I need the following:

  1. drag with two fingers
  2. drag with PointerButton::Secondary
  3. The ability to disable any of the gestures (already done in a clumsy way)
@podusowski
Copy link
Owner

I think I would just swap drag_gesture_enabled with some enum saying which buttons it should to. But I wonder, does egui even support two finger drag?

@noktoborus
Copy link
Contributor Author

noktoborus commented Feb 2, 2024

But I wonder, does egui even support two finger drag?

I didn't find the exact "two-fingers gesture" but egui has https://docs.rs/egui/latest/egui/enum.Event.html#variant.Touch
think is not so hard implement drag
Additionally, https://docs.rs/egui/latest/egui/struct.InputState.html#method.multi_touch is present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants