mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-20 04:05:00 +08:00
include: Fixed wiki formatting that got mangled into the headers.
This commit is contained in:
@@ -162,8 +162,12 @@ typedef struct SDL_GamepadBinding
|
|||||||
* string value from SDL_GetJoystickGUIDString(), name is the human readable
|
* string value from SDL_GetJoystickGUIDString(), name is the human readable
|
||||||
* string for the device and mappings are gamepad mappings to joystick ones.
|
* 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
|
* Under Windows there is a reserved GUID of "xinput" that covers all XInput
|
||||||
* devices. The mapping format for joystick is: {| |bX |a joystick button,
|
* devices. The mapping format for joystick is:
|
||||||
* index X |- |hX.Y |hat X with value Y |- |aX |axis X of the joystick |}
|
*
|
||||||
|
* - `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.
|
* Buttons can be used as a gamepad axes and vice versa.
|
||||||
*
|
*
|
||||||
* This string shows an example of a valid mapping for a gamepad:
|
* This string shows an example of a valid mapping for a gamepad:
|
||||||
|
|||||||
Reference in New Issue
Block a user