
Subfunction 2 - Wait for Untouch
127
100 M1%=&H65
' MonitorMouse special function
200 M2%=1
' subfunction 1
300 M3%=&H302
' set -c+, -b+, -s-, -t-, -m2
400 CALL MOUSE(M1%, M2%, M3%, M4%)
500 IF M2%<>M1% THEN PRINT "MonitorMouse not installed."
Here's the same code in C:
regs.x.ax = 0x65; regs.x.bx = 1; regs.x.cx = 0x302;
int86(0x33,®s,®s);
if (regs.x.bx != regs.x.ax)
puts("MonitorMouse not installed.");
S
UBFUNCTION
2 - W
AIT FOR
U
NTOUCH
Subfunction 2 will wait for an untouch if the screen is being touched. This is
normally called before changing modes with subfunction 1.
INPUT
OUTPUT
M1%=&H65
M2%=&H65
M2%=2