Skip to main content

Mouse

Commands to interface with a mouse pointer

MB

No arguments

  • Return Type: INTEGER

Return the button state of the mouse pointer

MB returns the sum of the following values depending on the state of the buttons:

ValueButton
0None
1Left
2Right
4Third

If a pointer is not attached, returns -1

MX

No arguments

  • Return Type: INTEGER

Return the horizontal position of the mouse pointer

If a pointer is not attached, returns -1

MY

No arguments

  • Return Type: INTEGER

Return the vertical position of the mouse pointer

If a pointer is not attached, returns -1