How the Keyboard and mouse is mapped in vsg #1090
Replies: 4 comments 5 replies
-
Also I need some help regarding vsg::ButtonMask. There is no such concept in wayland, unlike X11, in what scenarios can we apply button mask? |
Beta Was this translation helpful? Give feedback.
-
I just tested vsginput on my Kubuntu 22.04/Xcb system and my 5 button mouse maps to button number 1,2, 3, 4 and 5. So the Xcb_Window.cpp works OK so hopefully can help.
This is for adapting Xcb event times into a time frame relative to the rest of the VSG. Perhsaps the following section might be of help: https://github.com/vsg-dev/VulkanSceneGraph/blob/master/src/vsg/platform/xcb/Xcb_Window.cpp#L464 |
Beta Was this translation helpful? Give feedback.
-
Button 1 to button 1... etc. I don't know what more I can say. Could you try out the vsginput example - it reports the event information so you should be able to see how how all the buttons are mapped and how the button mask changes. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your inputs @robertosfield , it definitely helped me, I will close this discussion for now. |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone,
I am currently working on wayland window, but I am facing some challenges while mapping buttons and keys to vsg events:
vsg::clock::time_point event_time = _first_xcb_time_point + std::chrono::milliseconds(button_release->time - _first_xcb_timestamp);
Beta Was this translation helpful? Give feedback.
All reactions