APPENDIX I
$09 Set Absolute Mouse Positioning
T h is co m m a n d p u ts th e m o u se in to ab so lu te p ositio n m o d e . In this m o d e,
a m o u se p ositio n p ack et th a t re tu rn s th e cu rre n t m ou se p ositio n a s an ab
so lu te x,y co o rd in ate is g en e ra te d w h e n ev er co m m an d $0D is iss u ed . D e
p en d in g on th e m o u se b u tto n ac tio n se ttin g (co m m a n d $0 7 ), th is p a c k et
m a y also be g en e ra te d by a p ress o r rele ase o f eith e r m o u se b u tto n . In ab
so lu te p ositio n m o d e, se t a m ax im u m x a n d y po sitio n . M o v em en t b ey o nd
th e m a x im u m p o sitio n , o r be lo w 0, is ig n o re d .
S ettin g ab solu te p o sitio n m o d e re se ts th e cu rre n t x,y m o u se p ositio n
to 0 ,0 . A n o th er x,y p ositio n ca n b e se t u sin g co m m a n d $0 E . In th is m o d e,
y o u m a y se t a scalin g fa cto r th at d eterm in es h o w m a n y m o u se u n its m u st
be tra v erse d b efore th e x o r y p o sitio n ch a n g e s. T his scaling factor is set
w ith co m m a n d $0 C .
Input parameters
Byte
Number Description
1 H igh b y te, m a xim u m x p o sitio n (in scaled un its).
2 . L ow b y te, m ax im u m x p ositio n.
3 H ig h b y te , m axim u m y p ositio n (in scaled u n its).
4 L o w b y te, m a xim u m y p ositio n .
348