krishauser / Klampt

Kris' Locomotion and Manipulation Planning Toolkit
BSD 3-Clause "New" or "Revised" License
377 stars 96 forks source link

Is it possible to capture mouse wheel scrolling action ? #180

Closed luewh closed 4 months ago

luewh commented 7 months ago

The goal is to have a function like GLNavigationProgram.mousefunc(self,button,state,x,y) to know the mouse wheel state.

krishauser commented 7 months ago

This isn't implemented yet because not all visualization backends will support mouse wheel capture. However, it may be possible to do this on Qt. I'll put this on the feature wish list

krishauser commented 6 months ago

The latest push to main now allows for mouse wheel updates. See mousewheelfunc(self,dhorizontal,dvertical,x,y)!

krishauser commented 4 months ago

Adding a note that this is only available in OpenGL backends (Qt / GLUT)