![]() |
Retro Rocket OS
BASIC-Powered Operating System
|
The Mouse library provides a simple interface to the PS/2 mouse task.
You must start the ps2mouse task before using the library:
The following publicly documented procedures and functions are available via this library.
uninitialise the library and release resources. Call this when your program is finished with the mouse.
request the current mouse state from the ps2mouse task and update the library’s cached values. Call this regularly in your main loop.
get the latest absolute X coordinate (integer, pixels). Already clamped to the current screen width.
get the latest absolute Y coordinate (integer, pixels). Already clamped to the current screen height.
return TRUE if the left mouse button is pressed, else FALSE.
return TRUE if the right mouse button is pressed, else FALSE.
return TRUE if the middle mouse button is pressed, else FALSE.