back to index
Mouse
Inheritance
Object -> Mouse
Properties
dx
dy
x
y
buttons
changedButtons
pointerMode
Methods
int getDx () - delta movement
int getDy ()
int getX () - absolute coordinates
int getY ()
int getButtons () - MOUSE_LBUTTON | MOUSE_RBUTTON | MOUSE_MBUTTON
int getChangedButtons () - MOUSE_LBUTTON | MOUSE_RBUTTON | MOUSE_MBUTTON
grab () - glue mouse pointer to center of screen so it cannot be moved out of the window. useful for games and 3D editors.
int isGrabbed ()
setPointerMode (int) - MOUSE_POINTER_ENTER, MOUSE_POINTER_MOVE, MOUSE_POINTER_MANUAL
showPointer (int _enabled)
ungrab () - release mouse pointer
unproject (Vector _near, Vector _far) - uses the current GL_PROJECTION matrix
back to index