BASIC Interface
To use th e Mouse procedures in a BASIC program , declare
USES MOUSE
The subroutine and param eter defin ition can be found belo w :
GMOUS
SUB GM0US(SW3,SW 2,SW1,Y,X)
INTEGER SW1, SW2, SW3, Y, X
SETPOS
SUB SETPOS (X,Y)
INTEGER X,Y
SETMAX
SUB SETMAX (XMAX,YMAX)
INTEGER XMAX,YMAX
Example
Here is an exam ple fo r th e use o f th e Mouse procedures :
BASIC.
In th e lin e startin g with 10, th e maximum Mouse position
s e t b y means o f th e X and Y coordinates. In th e lir
starting with 20, th e present Mouse position is s e t to ze r
In th e lin e o f th e main program startin g with 100, ti:
variables are c o llected and displayed on th e screen.
8-10