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:
| Value | Button |
|---|---|
| 0 | None |
| 1 | Left |
| 2 | Right |
| 4 | Third |
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