Template:LSL Constants/GameControlModeAxes/Cursor

From Second Life Wiki
Index Name Range Description
0 CURSOR_DX [-1.0, 1.0] Cursor horizontal motion, normalized to the cursor movement rectangle
1 CURSOR_DY [-1.0, 1.0] Cursor vertical motion, normalized to the cursor movement rectangle
2 CURSOR_PX [0.0, width] Cursor horizontal position in pixels, measured from the left edge of the cursor movement rectangle
3 CURSOR_PY [0.0, height] Cursor vertical position in pixels, measured from the top edge of the cursor movement rectangle
4 CURSOR_NX [0.0, 1.0] Cursor horizontal position normalized to the cursor movement rectangle; 0.0 is the left edge, 1.0 is the right edge
5 CURSOR_NY [0.0, 1.0] Cursor vertical position normalized to the cursor movement rectangle; 0.0 is the top edge, 1.0 is the bottom edge