), your
MTB program may detect mouse clicks via scan codes (you do not
have to activate partial scan codes)
Every mouse click (up/down, left/right/center button) generates a
scan code:
| Scan code
| Description
|
| "@00FE@"
| a mouse button is down
|
| "@00FF@"
| a mouse button is up
|
Example:
INPUT (0) DATA$
IF DATA$ = '@00FE@' THEN MOUSE$ = 'DOWN'
IF DATA$ = '@00FF@' THEN MOUSE$ = 'UP'
Note:
Each mouse click also places 4 bytes (binary encoded) into the
input buffer:
| Byte
| Description
|
| 1-2
| Screen coordinates where mouse was clicked
|
| 3
| which button was pressed
|
| 4
| the current state of the mouse buttons
|
See Reading the mouse or Polling the mouse.
Mouse Driver