-
I'm working on some mouse gestures and trying to use However, the following returns always false no matter whether the mouse button is pressed or not:
(I also tried secondary button, middle button etc...) Possibly I'm using the api wrong. How can I detected whether a mouse button (left vs right) is down? However, other aspects of the pointer api works just fine. E.g. I can detect and print out delta mouse motion:
Example output:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay, I tested it on windows mouse button is actually registered. Before I did run on linux. Edit: Okay, the problem was in front of the keyboard. Not a problem linux vs. windows. When trying to figure mouse interactions out in egui-minigui, I accidentally deleted the following line which seems to propagate mouse events from minigui to egui::
(⊙_◎) |
Beta Was this translation helpful? Give feedback.
Okay, I tested it on windows mouse button is actually registered. Before I did run on linux.
Edit: Okay, the problem was in front of the keyboard.
Not a problem linux vs. windows. When trying to figure mouse interactions out in egui-minigui, I accidentally deleted the following line which seems to propagate mouse events from minigui to egui::
(⊙_◎)