Mouse and keyboard events (on steroids) #790
Unanswered
DaMilyutin
asked this question in
Ideas
Replies: 2 comments 5 replies
-
Apart from the wheel event, i believe the current API covers already what you suggest. What use-case do you have in mind? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Is there any example for how to handle mouse move in area and mouse leave area? I relly need to handle these events. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know there was some work done for mouse events.
However, I'd like to share some thoughts, discuss it and clarify how it is done.
I'd categorize events in groups
As for C++ developer it seems to me that bitmask will be best option to handle pressed buttons.
Maybe on can have separated keyboard and mouse events somehow and then fuse them.
From other hand one can just have InputEvent and process it as he desires.
All KB keys will probably fit in 256 bits and mouse keys in 8 bits.
As for clicks it actually harder task. One need to write sort of driver to interpret mouse inputs,
I'd add field fot number of clicks. 0 - pressed, 1 - clicked, 2 - double clicked, etc.
In C++I'd model it like
This approach will allow for user of sixtyfps to process events with many keys pressed.
this includes events with modifier keys like ex. shift+click.
So is such approach interesting for you?
Where can I see usage of current iterface?
Beta Was this translation helpful? Give feedback.
All reactions