MOUSI
*
Introduction
The follo w in g is a description o f th e procedures you can ust
with th e p-S ystem ™ to work with your mouse.
The s oftw are you need fo r using the Mouse in te rfa c e ara
working w ith th e Mouse in th e p -S ystem ™ is contained in the
MOUSE.CODE f i l e . I f you h ave a R u ntim e Systen
MOUSE.CODE is incorporated in your SYSTEM .LIB R ARY. L
you have a Hus System, you have to in sert this code in youi
SY STE M .L IB R A R Y, in any o f slots 0 through 15. Chapter 6
u tility 'L IB R A R Y ' in th e 'UCSD p-System , Programming' Manua
describes how th is is done.
The in te rfa ce p a rt o f th e Mouse unit a ffo rd s access to th<
follow in g procedures:
GMOUS: giv es the status o f th e Mouse sw itches an<
Mouse position. This procedure supplies th<
absolute position (x and y coordinates) o f th<
Mouse and th e status o f th e sw itch (es) (up t<
3 ). Use a ll th ree sw itch variab les, even i
your Mouse has only one o r tw o sw itches.
X ,Y : absolute x and y coordinates
SW l,SW 2,S W 3: status o f the Mouse sw itches (1 = pressed, I
= not pressed o r not existen t)
SETPOS: sets th e lo g ic a l position o f th e Mouse.
X,Y: New x and y coordinates fo r th e Mous<
position.
N o t e : Use this option to s e t a new position fo r th e Mouse
I f you requ ire no d ire c t co rrelation betw een th e physica
position o f th e Mouse and its program p osition, you can rese
8 - :