kjt_get_mouse_position
Created by: Administrator, Last modification: Mon 09 of Aug, 2010 (15:42 UTC) by phil
Action: Returns absolute mouse position and button data. The coordinates are limited to the window size set by kjt_enable_mouse
Input Registers : none
Output Registers
- HL = x coordinate
- DE = y coordinate
- A = buttons status
- Zero Flag: if not set, the mouse driver has not been enabled
Trashes: All
Note:
The mouse driver is currently somewhat primative - it may become out of sync with the three-byte packets that the mouse sends if say, interrupts are disabled
The mouse driver is currently somewhat primative - it may become out of sync with the three-byte packets that the mouse sends if say, interrupts are disabled
- Up
- Kernal keyboard and mouse, Kernal