Here's the same code in C:
S
UBFUNCTION
Subfunction 2 will wait for an untouch if the screen is being touched. This is
normally called before changing modes with subfunction 1.
100 M1%=&H65
200 M2%=1
300 M3%=&H302
400 CALL MOUSE(M1%, M2%, M3%, M4%)
500 IF M2%<>M1% THEN PRINT "MonitorMouse not installed."
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.");
2 - W
AIT FOR
INPUT
M1%=&H65
M2%=2
Subfunction 2 - Wait for Untouch
' MonitorMouse special function
' subfunction 1
' set -c+, -b+, -s-, -t-, -m2
U
NTOUCH
OUTPUT
M2%=&H65
127
Need help?
Do you have a question about the software and is the answer not in the manual?