Hi!
I’m new in Panda3d and try to master the mouse.
When I make a :
mouseX = base.mouseWatcherNode.getMouseX()
I’ve got an error :
Assertion failed: _has_mouse at line 69 of panda/src/tform/mouseWatcher.I
Traceback (most recent call last):
File "lanceur.py", line 2, in <module>
import test1
File "/home/sebsheep/OSE/testsPanda/test1.py", line 31, in <module>
mouseX = base.mouseWatcherNode.getMouseX()
AssertionError: _has_mouse at line 69 of panda/src/tform/mouseWatcher.I
I think that mean that my mouse isn’t seen, but if I only try to move the scene thank the default camera with the mouse, it works perfectly. I don’t understand why it doesn’t work.
Could anybody help me?
Config : Ubuntu 7.10, python 2.5.1
Morever, I didn’t see any method in the reference which give the mouse movement ; have I to get MouseX et MouseY every frame,stock it, and after make a sub?
Tkx
Seb