EasyManua.ls Logo

Atari ST series - Page 369

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...
The Intelligent Keyboard Controller
$16 Interrogate Joystick
T his fu n c tion can b e u se d to re ad th e cu rre n t sta tu s of th e jo ystick s w h en
in e v e n t re p ortin g m o d e o r in te rro g atio n m o d e . It is th e o n ly w a y to rea d
th e jo y stick s w h en in in te rro g atio n m o d e .
Input parameters
N o n e
Packet returned
Byte
Number Description
1 $F D (Jo ystick re p o rt p ack et h ea d er)
2 Jo ystic k 0 stick a n d b u tto n statu s b yte (B xxxR L D U )
B it 0 = 1 Jo y stick p res sed in u p direction
Bit 1 = 1 Joy stick p res se d in d o w n d ire ctio n
B it 2 = 1 Jo y s tick p re sse d in left d ire ction
B it 3 = 1 Jo ystick p re sse d in rig h t d irection
B it 7 = 1 F ire b u tto n p re s sed
3 Jo ystick 1 stick a n d b u tto n sta tu s b y te (B xxxR L D U )
B it 0 = 1 Jo y stick p re sse d in u p d ire ctio n
B it 1 = 1 Jo ys tick p re sse d in d o w n d irectio n
B it 2 = 1 Jo ystick p re sse d in le ft direction
B it 3 = 1 Joy stick p res sed in rig h t d ire ction
Bit 7 = 1 F ire b u tto n p resse d
361