From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-6/Help_68.AMOS

Reads the current status of a JOYstick.


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