Add keys for SDL 2.0.14's new gamepad buttons

This fixes the additional buttons triggering binds for ioq3 left
and right joystick direction keys.
This commit is contained in:
Zack Middleton committed 2022-09-22 09:18:22 -05:00
1 parent 29b0cc3a4d
commit f92c293f7b
3 files changed
+22 -1

No files matched your search

+7
View File
@@ -290,6 +290,13 @@ typedef enum {
K_PAD0_LEFTTRIGGER,
K_PAD0_RIGHTTRIGGER,
K_PAD0_MISC1, /* Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button */
K_PAD0_PADDLE1, /* Xbox Elite paddle P1 */
K_PAD0_PADDLE2, /* Xbox Elite paddle P3 */
K_PAD0_PADDLE3, /* Xbox Elite paddle P2 */
K_PAD0_PADDLE4, /* Xbox Elite paddle P4 */
K_PAD0_TOUCHPAD, /* PS4/PS5 touchpad button */
// Pseudo-key that brings the console down
K_CONSOLE,