EasyManua.ls Logo

Atari ST series - Page 360

Atari ST series
420 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APPENDIX I
$0D Interrogate Mouse Position
T his fu nctio n is u se d to re ad th e m o u se p ositio n w h en in ab so lu te po sitio n
m od e. T h e o n ly o th e r w a y to g e t th e m ou se p ositio n from th at m o d e is to
se t th e m ou se b u tto n s to re p o rt on a p res s o r rele ase, u sin g co m m a n d $ 0 7.
Input parameters
N o n e
Packet returned
Byte
Number Description
1 $ F 7 (m o u se ab so lu te p osition p a c k et h ea d er)
2 B u tto n ch a n g e sta tu s:
B it 0 = 1 R ig h t b u tto n p re sse d sin ce las t rea d
B it 1 = 1 R ig h t b u tto n rele ase d sin ce last read
Bit 2 = 1 L eft b u tto n p re sse d sin ce las t rea d
B it 3 = 1 L eft b u tto n re lea sed sin ce las t rea d
3 H igh b y te o f h oriz on tal p osition
4 L ow b y te of ho riz on tal p ositio n
5 H ig h b yte of v ertical p ositio n
7 L o w b y te o f v ertical p ositio n
352