-
Notifications
You must be signed in to change notification settings - Fork 1.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
Basic multi touch support (issue #279) #306
Basic multi touch support (issue #279) #306
Commits on Apr 13, 2021
-
translate touch events from glium to egui
Unfortunately, winit does not seem to create _Touch_ events for the touch pad on my mac. Only _TouchpadPressure_ events are sent. Found some issues (like [this](rust-windowing/winit#54)), but I am not sure what they exactly mean: Sometimes, touch events are mixed with touch-to-pointer translation in the discussions.
Configuration menu - View commit details
-
Copy full SHA for 3cae7c5 - Browse repository at this point
Copy the full SHA 3cae7c5View commit details -
translate touch events from web_sys to egui
The are a few open topics: - egui_web currently translates touch events into pointer events. I guess this should change, such that egui itself performs this kind of conversion. - `pub fn egui_web::pos_from_touch_event` is a public function, but I would like to change the return type to an `Option`. Shouldn't this function be private, anyway?
Configuration menu - View commit details
-
Copy full SHA for 9dbda04 - Browse repository at this point
Copy the full SHA 9dbda04View commit details -
introduce
TouchState
andGesture
InputState.touch was introduced with type `TouchState`, just as InputState.pointer is of type `Pointer`. The TouchState internally relies on a collection of `Gesture`s. This commit provides the first rudimentary implementation of a Gesture, but has no functionality, yet.
Configuration menu - View commit details
-
Copy full SHA for 7c1c01a - Browse repository at this point
Copy the full SHA 7c1c01aView commit details -
So far, the method always returns `None`, but it should work as soon as the `Zoom` gesture is implemented.
Configuration menu - View commit details
-
Copy full SHA for 69dafcc - Browse repository at this point
Copy the full SHA 69dafccView commit details -
manage one
TouchState
per individual deviceAlthough quite unlikely, it is still possible to connect more than one touch device. (I have three touch pads connected to my MacBook in total, but unfortunately `winit` sends touch events for none of them.) We do not want to mix-up the touches from different devices.
Configuration menu - View commit details
-
Copy full SHA for 7d30aa1 - Browse repository at this point
Copy the full SHA 7d30aa1View commit details -
implement control loop for gesture detection
The basic idea is that each gesture can focus on detection logic and does not have to care (too much) about managing touch state in general.
Configuration menu - View commit details
-
Copy full SHA for 2d8406b - Browse repository at this point
Copy the full SHA 2d8406bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c2908ab - Browse repository at this point
Copy the full SHA c2908abView commit details -
Configuration menu - View commit details
-
Copy full SHA for a5da37d - Browse repository at this point
Copy the full SHA a5da37dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45e59e7 - Browse repository at this point
Copy the full SHA 45e59e7View commit details
Commits on Apr 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c348c6c - Browse repository at this point
Copy the full SHA c348c6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e841d5 - Browse repository at this point
Copy the full SHA 9e841d5View commit details
Commits on Apr 18, 2021
-
Provide a Zoom/Rotate window in the demo app
For now, it works for two fingers only. The third finger interrupts the gesture. Bugs: - Pinching in the demo window also moves the window -> Pointer events must be ignored when touch is active - Pinching also works when doing it outside the demo window -> it would be nice to return the touch info in the `Response` of the painter allocation
Configuration menu - View commit details
-
Copy full SHA for dfc4f20 - Browse repository at this point
Copy the full SHA dfc4f20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 286e4d5 - Browse repository at this point
Copy the full SHA 286e4d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39d93e1 - Browse repository at this point
Copy the full SHA 39d93e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99176c3 - Browse repository at this point
Copy the full SHA 99176c3View commit details
Commits on Apr 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for de4b4cd - Browse repository at this point
Copy the full SHA de4b4cdView commit details
Commits on Apr 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 211972e - Browse repository at this point
Copy the full SHA 211972eView commit details
Commits on Apr 23, 2021
-
This commit includes an improved Demo Window for egui_demo, and a complete re-write of the gesture detection. The PR should be ready for review, soon.
Configuration menu - View commit details
-
Copy full SHA for ca846e5 - Browse repository at this point
Copy the full SHA ca846e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0882300 - Browse repository at this point
Copy the full SHA 0882300View commit details
Commits on Apr 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0d7d20a - Browse repository at this point
Copy the full SHA 0d7d20aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd5b909 - Browse repository at this point
Copy the full SHA bd5b909View commit details
Commits on Apr 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for cc054b8 - Browse repository at this point
Copy the full SHA cc054b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for fee8ed8 - Browse repository at this point
Copy the full SHA fee8ed8View commit details
Commits on Apr 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0687b82 - Browse repository at this point
Copy the full SHA 0687b82View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce8f3a8 - Browse repository at this point
Copy the full SHA ce8f3a8View commit details -
accept suggestion #306 (comment)
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9c6c6b1 - Browse repository at this point
Copy the full SHA 9c6c6b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c27120 - Browse repository at this point
Copy the full SHA 5c27120View commit details -
Configuration menu - View commit details
-
Copy full SHA for 612069a - Browse repository at this point
Copy the full SHA 612069aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3cc56e - Browse repository at this point
Copy the full SHA e3cc56eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4c9a65 - Browse repository at this point
Copy the full SHA e4c9a65View commit details
Commits on May 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 67b5a88 - Browse repository at this point
Copy the full SHA 67b5a88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3918653 - Browse repository at this point
Copy the full SHA 3918653View commit details
Commits on May 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9161b12 - Browse repository at this point
Copy the full SHA 9161b12View commit details -
Configuration menu - View commit details
-
Copy full SHA for b38e225 - Browse repository at this point
Copy the full SHA b38e225View commit details -
Configuration menu - View commit details
-
Copy full SHA for acbefda - Browse repository at this point
Copy the full SHA acbefdaView commit details
Commits on May 5, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 755ca30 - Browse repository at this point
Copy the full SHA 755ca30View commit details