This is an old revision of the document!
Orx supports up to 16 joysticks or gamepad devices.
Here's the list of the available joystick buttons for the input config system (replace the *
with the ID of the joystick you want to use, a number between 1 and 16):
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Here's the list of the available joystick axes for the input config system (replace the *
with the ID of the joystick you want to use, starting with 1):
*
*
*
*
*
*
*
Each is a axis. For example: JOY_X_ is usually the left right of an analog stick, while JOY_Y_ is the up down axis of the same stick.
JOY_Z_ and JOY_R_ can be the left/right up/down of another stick.
Each controller will implement its layout differently. It is helpful to consider providing remapping in your game.
Here's the list of the available joystick half axes for the input config system which allow you to easily use the axis like an 8-way old school joystick (replace the *
with the ID of the joystick you want to use: 1 to 16):
*
(Binds joystick's positive X half-axis to an input)*
(Binds joystick's negative X half-axis to an input)*
(Binds joystick's positive Y half-axis to an input)*
(Binds joystick's negative Y half-axis to an input)*
(Binds joystick's positive Z half-axis to an input)*
(Binds joystick's negative Z half-axis to an input)*
(Binds joystick's positive R half-axis to an input)*
(Binds joystick's negative R half-axis to an input)