EasyManua.ls Logo

Atari ST series - Page 370

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
$17 Set Joystick Monitoring
T h is co m m an d sets th e IK BD in to jo ystic k m o n itorin g m o d e . W h en in th is
m o d e , th e IK BD d o e s n o th in g b u t m o n itor th e jo y stick , co m m u n ica te o v er
th e serial lin e, a n d m a in ta in th e tim e -o f-d ay clo ck . T h e rate a t w h ich th e
jo ystick is sa m p led m a y b e co n tro lle d d o w n to 1/1 0 0 of a se co n d .
Input parameters
Byte
Number Description
1 T im e b e tw e en jo ys tick sam p les (in un its o f 1/100 o f a se co n d ).
Packet returned
Byte
Number Description
1 Fire b u tto n sta tu s fo r jo y stick 0 an d l(xx xx xx B B )
B it 0 = 1 F ire b u tto n p re sse d o n joy stick 1
B it 1 = 1 Fire b u tto n p re s sed o n jo ystick 0
3 Jo ystick sta tu s for jo ystick 0 a n d 1 (R L D U R LD U )
B it 0 = 1 Jo y stic k 1 p res sed in u p d ire ctio n
B it 1 = 1 Joy stick 1 p re sse d in d o w n d ire ctio n
B it 2 = 1 Jo y stick 1 p re sse d in left direction
B it 3 = 1 Jo ys tick 1 p re sse d in rig h t d ire ction
B it 4 = 1 Jo ys tick 0 p re sse d in u p d ire c tio n
B it 5 = 1 Jo y s tick 0 p res sed in d o w n d irectio n
B it 6 = 1 Joy stick 0 p re s sed in left d ire ctio n
B it 7 = 1 Jo ystick 0 p re sse d in righ t d ire ction
362