Hi,
does anyone have some sample code for getting a mouse move event?
I'd like to trigger some functions that will display additional information like 1/2 seconds after an item got selected and the mouse is not moving. It should be hidden when the mouse is moving again.
I've seen some coin events but not sure if they're suitable and which ones are suitable for that at the moment.
https://coin3d.github.io/Coin/html/clas ... Event.html
Get mouse move event?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Get mouse move event?
Do you want to address 3D View, Tree,...?
Re: Get mouse move event?
Hi,
sorry that I didn't reply earlier - I was digging into other things.
following is what I was looking for:
sorry that I didn't reply earlier - I was digging into other things.
following is what I was looking for:
Code: Select all
def logPosition(event):
print(event)
print(dir(event))
v=Gui.activeDocument().activeView()
c=v.addEventCallback("SoEvent",logPosition)