Sam Lantinga
eb8b5ed3a4
Fixed crash when the joystick can't be opened
2023-07-17 17:35:38 -07:00
Sam Lantinga
b271e92c6e
Added the ability to specify a gamepad type in the mapping
...
Also renamed most cases of SDL_GAMEPAD_TYPE_UNKNOWN to SDL_GAMEPAD_TYPE_STANDARD, and SDL_GetGamepadType() will return SDL_GAMEPAD_TYPE_UNKNOWN only if the gamepad is invalid.
2023-07-17 12:59:56 -07:00
Sam Lantinga
57820071a4
Added the ability to rename your controller
2023-07-16 15:57:32 -07:00
Sam Lantinga
08db0e8f64
Allow clicking on the gamepad image to bind elements
2023-07-16 15:57:32 -07:00
Sam Lantinga
8f21be87fc
Allow using A and B to navigate the controller binding flow
2023-07-16 15:57:32 -07:00
Sam Lantinga
787786bdbc
testcontroller: memory management cleanup
...
Also saved the guide button for last in the binding flow, since it may not be present on the controller or available from the OS
2023-07-16 15:57:32 -07:00
Sam Lantinga
8296242f2e
We don't need to be verbose about gamepad events now that we can visualize them
2023-07-16 04:32:12 -07:00
Sam Lantinga
d90b938f0f
Additional work on binding mode for testcontroller
2023-07-16 04:32:12 -07:00
Sam Lantinga
57cfd1e106
Removed SDL_GAMEPAD_TYPE_VIRTUAL, SDL_GAMEPAD_TYPE_AMAZON_LUNA, SDL_GAMEPAD_TYPE_GOOGLE_STADIA, and SDL_GAMEPAD_TYPE_NVIDIA_SHIELD
...
Removing SDL_GAMEPAD_TYPE_VIRTUAL allows a virtual controller to emulate another gamepad type. The other controller types can be treated as generic controllers by applications without special glyph or functionality treatment.
2023-07-16 04:32:12 -07:00
Sam Lantinga
404e030b39
Added binding mode to testcontroller
2023-07-16 04:32:12 -07:00
Sam Lantinga
ca492dff18
Renamed testgamepad to testcontroller
...
The program does more than just test gamepads, and will eventually map them as well.
2023-07-16 04:32:12 -07:00