Klampt icon indicating copy to clipboard operation
Klampt copied to clipboard

Is it possible to capture mouse wheel scrolling action ?

Open luewh opened this issue 10 months ago • 1 comments

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

luewh avatar Apr 10 '24 08:04 luewh

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 avatar Apr 23 '24 14:04 krishauser

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

krishauser avatar May 24 '24 16:05 krishauser

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

krishauser avatar Jul 03 '24 20:07 krishauser