![]() |
|
#2
|
|||
|
|||
|
Hi Steve,
1) When the MOUSEMOVE callback returns relative data then it will automatically recenter the mouse when it reaches the edge of the window. If you don't want the mouse to be recentered, then you can change the callback so that it returns absolute data. By default, the horizontal data is absolute and the vertical data is relative. To change both to absolute do the following: Code:
viz.mousedata(viz.ABSOLUTE,viz.ABSOLUTE) Code:
viz.velocity(0,0,0) Code:
if whichKey == viz.KEY_CONTROL_L and viz.iskeydown(viz.KEY_SHIFT_L):
print 'Shift + Ctrl pressed'
Let me know if you need any more help on this. |
|
|