scenerygraphics / scenery

Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan.
https://scenery.graphics
GNU Lesser General Public License v3.0
128 stars 31 forks source link

All mouse buttons seem to be recognized as button1 #377

Open moreApi opened 3 years ago

moreApi commented 3 years ago

Move the camera works with all mouse buttons but should only be possible with button1. Also, commands wich are assigned to button 2 and 3 do not work.

In my initial investigation I found line 101 in GLFWMouseAndKeyHandler to be strange as the pressed button is always set to 0 same goes for the drag event above. However, this might not be relevant as the getMask method does not access that value. But that is also the point were I stopped my investigation as my knowledge of AWT input mask is lacking. Maybe the error is there somewhere. I don't see any code adding anything single button 2 and 3 clicks to the mask. And going with the debugger there and pressing left or right mouse buttons results in the same mask (1024).

Also scenerygraphics/sciview#356 of sciviewe might be related.

moreApi commented 3 months ago

still valid

kephale commented 3 weeks ago

bump