include: Fixed wiki formatting that got mangled into the headers.

main
Ryan C. Gordon 2023-02-26 21:46:50 -05:00
parent a5a53c12bf
commit 9f8425a7a9
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 6 additions and 2 deletions

View File

@ -162,8 +162,12 @@ typedef struct SDL_GamepadBinding
* string value from SDL_GetJoystickGUIDString(), name is the human readable
* string for the device and mappings are gamepad mappings to joystick ones.
* Under Windows there is a reserved GUID of "xinput" that covers all XInput
* devices. The mapping format for joystick is: {| |bX |a joystick button,
* index X |- |hX.Y |hat X with value Y |- |aX |axis X of the joystick |}
* devices. The mapping format for joystick is:
*
* - `bX`: a joystick button, index X
* - `hX.Y`: hat X with value Y
* - `aX`: axis X of the joystick
*
* Buttons can be used as a gamepad axes and vice versa.
*
* This string shows an example of a valid mapping for a gamepad: