User Tools

Site Tools


en:orx:config:settings_main:input_joystick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:orx:config:settings_main:input_joystick [2018/09/10 04:31 (6 years ago)] – [Joystick axes] sausageen:orx:config:settings_main:input_joystick [2018/09/19 19:59 (6 years ago)] – [Joystick axes] sausage
Line 1: Line 1:
 ====== Joystick inputs ====== ====== Joystick inputs ======
 +
 +Orx supports up to 16 joysticks or gamepad devices.
  
 ===== Joystick buttons ===== ===== Joystick buttons =====
  
-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, starting with 1**):+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 and 16**):
   * JOY_1_''*''   * JOY_1_''*''
   * JOY_2_''*''   * JOY_2_''*''
Line 23: Line 25:
 ===== Joystick axes ===== ===== Joystick axes =====
  
-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**): +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, a number between and 16**): 
-  * JOY_X_''*'' + 
-  * JOY_Y_''*'' +  * JOY_LX_''*'' 
-  * JOY_Z_''*'' +  * JOY_LY_''*'' 
-  * JOY_R_''*'' +  * JOY_RX_''*'' 
-  * JOY_U_''*'' +  * JOY_RY_''*'' 
-  * JOY_V_''*'' + 
-  * JOY_POV_''*''+Each is a axis. For example: JOY_LX_1 is the left/right of the left analog stick on controller 1, while JOY_LY_1 is the up/down axis of the same stick on controller 1.  
 + 
 +{{ :tutorials:xbox-one-mapping.jpg |}} 
 +{{ :tutorials:logitech-mapping.jpg |}}
  
-Each is a axis. For example: JOY_X_ is usually the left right of an analog stickwhile JOY_Y_ is the up down axis of the same stick. +JOY_RX_1 and JOY_RY_1 will be the left/right, up/down of the right stick on controller 1.
  
-JOY_Z_ and JOY_R_ can be the left/right up/down of another stick.+Each controller will implement its layout differently. But Orx makes use of the [[https://github.com/gabomdq/SDL_GameControllerDB|SDL_GameControllerDB community database]] internally to make the mapping consistent for all controllers playing your game
  
-Each controller will implement its layout differently. It is helpful to consider providing [[en:tutorials:remapping_inputs|remapping in your game]].+To allow the user to customise mapping, it is helpful to consider providing [[en:tutorials:remapping_inputs|remapping in your game]].
 ===== Joystick half-axes ===== ===== Joystick half-axes =====
  
-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, starting with 1**):+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, a number between and 16**):
  
   * +JOY_X_''*'' (Binds joystick's positive X half-axis to an input)   * +JOY_X_''*'' (Binds joystick's positive X half-axis to an input)
en/orx/config/settings_main/input_joystick.txt · Last modified: 2020/08/31 05:44 (4 years ago) by sausage