Difference between revisions of "AMOSi:Joy"
Spellcoder (talk | contribs) m (1 revision(s)) |
Spellcoder (talk | contribs) m (1 revision(s)) |
(No difference)
|
Latest revision as of 01:51, 17 November 2007
an example can be found on AMOSPro_Examples:Examples/H-6/Help_68.AMOS
Reads the current status of a JOYstick.
status=Joy(portnumber)
Portnumber number=0 checks a joystick in the mouse port.
=1 tests a stick in the normal joystick port.
The status is rerurned in the form of a bitmap.If a bit is set to one, the joystick has been moved in the relevant direction.
Here's a list of the possible return values.
Normal With Fire Button pressed
1 17
5 9 21 25
4 0 8 20 16 24
6 10 22 26
2 18