Is there something similar to scene.mouse.getclick in the visual module (VPython)?
I need it for a rollover.
Thanks in advance.
EDIT: I need a function for doing something when the mouse moves inside a special area without clicking.
scene.mouse.getclick will tell you where the mouse was when it was last clicked. This is different from scene.mouse.clicked which tells you if someone clicked.
There is no correspoding way to see if someone had their mouse over a particular object. One thing you can do is use a while loop that continually checks scene.mouse.pick to see if it is the mouse is currently over an object of interest.
mouse rollover event in Python (VPython)