AMOSi:Joy

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
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.


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