Event when the mouse moves?


Is there a way in Panda to get notified when the mouse moves?
Right now, I use events for key presses and mouse clicks, but to detect the mouse movement, I poll the mouse pos each frame.

But I’d rather like to get notified whenever the mouse moved instead of polling…



Hmm, it looks like you should be able to call base.buttonThrowers[0].node().setMoveEvent(‘move’), and then listen for event ‘move’, but for some reason that’s not working. Maybe the move event isn’t properly hooked up internally through the data input pipeline.

So, the short answer is, no, sorry. But polling shouldn’t be such a bad solution.