Skip to content

Commit

Permalink
Update controller-autoconfiguration.md
Browse files Browse the repository at this point in the history
Described maximum values, and h1
  • Loading branch information
davidhedlund authored Jun 14, 2024
1 parent 972db9b commit 4cb9f86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/guides/controller-autoconfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,20 @@ input_menu_toggle_btn = "8"

* Variable names ending with `_axis` define these (e.g., `input_l_x_axis`, `input_r2_axis`).
* They represent analog inputs from the controller, like joystick position (e.g., left joystick X-axis, right joystick Y-axis) or trigger pressure (e.g., left trigger, right trigger).
* Axis definitions use `+` and `-` that ranges from `0`, to `10` to indicate positive or negative direction (e.g., full press vs. no press).
* Axis definitions use `+` and `-` to indicate positive or negative direction (e.g., full press vs. no press).
* The current RetroArch configurations have axis values that ranges from `0` to `10`. However, if RetroArch does not limit the values to `10`, underlying controller hardware could offer an even wider range.

#### Buttons (digital inputs)

* These are defined by variable names ending with `_btn` (e.g., `input_a_btn`, `input_start_btn`).
* The assigned values (ranging from "0" to "203") are unique IDs for your controller's buttons.
* The current RetroArch configurations have button values that ranges from `0` to `203`. However, if RetroArch does not limit the values to `203`, underlying controller hardware could offer an even wider range.
* RetroArch interprets these IDs (usually 1 for pressed, 0 for not pressed) to determine the button state.

##### D-Pad directions (special digital inputs)

* D-pad directions use variable values beginning with `h0` (e.g., `input_up_btn = "h0up"`).
* Four `h0` variables exist (`h0up`, `h0down`, `h0left`, `h0right`) for each direction on the D-pad.
* Note: The value `h1` is used by a single controller (Nintendo_Wii_Remote_Classic_Controller.cfg).

### Input descriptors

Expand Down

0 comments on commit 4cb9f86

Please sign in to comment.