Atari ST series Technical Reference Manual page 356

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

$09 Set Absolute Mouse Positioning
T h i s c o m m a n d p u t s t h e m o u s e i n t o a b s o l u t e p o s i t i o n m o d e . I n th is m o d e ,
a m o u s e p o s i t i o n p a c k e t t h a t r e t u r n s t h e c u r r e n t m o u s e p o s i t i o n a s a n a b ­
x,y
s o l u t e
c o o r d i n a t e is g e n e r a t e d w h e n e v e r c o m m a n d $ 0 D i s i s s u e d . D e ­
p e n d i n g o n t h e m o u s e b u t t o n a c t i o n s e t t i n g ( c o m m a n d $ 0 7 ) , th is p a c k e t
m a y a l s o b e g e n e r a t e d b y a p r e s s o r r e l e a s e o f e i t h e r m o u s e b u t t o n . I n a b ­
s o l u t e p o s i t i o n m o d e , s e t a m a x i m u m
t h e m a x i m u m p o s i t i o n , o r b e l o w 0 , is i g n o r e d .
S e t t i n g a b s o l u t e p o s i t i o n m o d e r e s e t s t h e c u r r e n t
x,y
to 0 , 0 . A n o t h e r
y o u m a y s e t a s c a l i n g f a c t o r t h a t d e t e r m i n e s h o w m a n y m o u s e u n i t s m u s t
b e t r a v e r s e d b e f o r e t h e
w i t h c o m m a n d $ 0 C .
Input parameters
Byte
Number
Description
1
H i g h b y t e , m a x i m u m
2
. L o w b y t e , m a x i m u m
3
H i g h b y t e , m a x i m u m
4
L o w b y t e , m a x i m u m
348
APPENDIX I
x
p o s i t i o n c a n b e s e t u s i n g c o m m a n d $ 0 E . I n th is m o d e ,
x
o r y p o s i t i o n c h a n g e s . T h is s c a l i n g f a c t o r is s e t
x
p o s i t i o n (in s c a l e d u n i t s ) .
x
p o s i t i o n .
y
p o s i t i o n (in s c a l e d u n i t s ) .
y
p o s i t i o n .
y
a n d
p o s i t i o n . M o v e m e n t b e y o n d
x,y
m o u s e p o s i t i o n

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents