Unable to use buttons in the mouse example
vigneshjathavara opened this issue · 3 comments
vigneshjathavara commented
Im setting mouse.buttons = 4; that should work by pressing left button of the mouse. but nothing happens. The navigation using x and y is working properly but button clicks are not
vigneshjathavara commented
Actually it works but i think the 3 bits used are centerClick, RightClick, LeftClick
aldur commented
Hi, you have to issue 2 separate events in order for the click to be detected (press & release.
For what regards the clicks: 0x01
is left, 0x02
is right and 0x04
is middle, so what you say it's correct.
Let me know if you need other info.
vigneshjathavara commented
Yes it works!! Thanks a lot :)