GLBasic User Manual

Main sections

MOUSEAXIS

v%=MOUSEAXIS(ax%)



Returns the state of the mouse axis/buttons.
ax%:
0=X - Velocity
1=Y - Velocity
2=Wheel (1 up, -1 down)
3=left mouse button
4=right mouse button
5=middle mouse button

// --------------------------------- //
// Project: MOUSEAXIS
// Start: Tuesday, November 16, 2004
// IDE Version: 2.41111

WHILE TRUE
PRINT "X:" + MOUSEAXIS(0), 0, 0
PRINT "Y:" + MOUSEAXIS(1), 0, 20
PRINT "Z:" + MOUSEAXIS(2), 0, 40
PRINT "A:" + MOUSEAXIS(3), 0, 60
PRINT "B:" + MOUSEAXIS(4), 0, 80
PRINT "C:" + MOUSEAXIS(5), 0,100
SHOWSCREEN
WEND


See also...