2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-21 17:37:32 +01:00

engine: client: keys: reserve some more buttons as gamepad buttons according to latest SDL2 GameController header

This commit is contained in:
Alibek Omarov 2023-02-09 06:29:16 +03:00
parent d6d98bd297
commit c741ec223f
2 changed files with 19 additions and 7 deletions

View File

@ -123,13 +123,13 @@ keyname_t keynames[] =
{"JOY4" , K_JOY4 , ""}, {"JOY4" , K_JOY4 , ""},
{"C_BUTTON", K_C_BUTTON, ""}, {"C_BUTTON", K_C_BUTTON, ""},
{"Z_BUTTON", K_Z_BUTTON, ""}, {"Z_BUTTON", K_Z_BUTTON, ""},
{"AUX20", K_AUX20, ""}, // generic {"MISC_BUTTON", K_MISC_BUTTON, ""},
{"AUX21", K_AUX21, ""}, {"PADDLE1", K_PADDLE1_BUTTON, ""},
{"AUX22", K_AUX22, ""}, {"PADDLE2", K_PADDLE2_BUTTON, ""},
{"AUX23", K_AUX23, ""}, {"PADDLE3", K_PADDLE3_BUTTON, ""},
{"AUX24", K_AUX24, ""}, {"PADDLE4", K_PADDLE4_BUTTON, ""},
{"AUX25", K_AUX25, ""}, {"TOUCHPAD", K_TOUCHPAD, ""},
{"AUX26", K_AUX26, ""}, {"AUX26", K_AUX26, ""}, // generic
{"AUX27", K_AUX27, ""}, {"AUX27", K_AUX27, ""},
{"AUX28", K_AUX28, ""}, {"AUX28", K_AUX28, ""},
{"AUX29", K_AUX29, ""}, {"AUX29", K_AUX29, ""},

View File

@ -145,11 +145,23 @@
#define K_DPAD_RIGHT K_AUX19 #define K_DPAD_RIGHT K_AUX19
#define K_AUX20 226 #define K_AUX20 226
#define K_MISC_BUTTON K_AUX20 // Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button
#define K_AUX21 227 #define K_AUX21 227
#define K_PADDLE1_BUTTON K_AUX21 // Xbox Elite paddle P1-P4
#define K_AUX22 228 #define K_AUX22 228
#define K_PADDLE2_BUTTON K_AUX22
#define K_AUX23 229 #define K_AUX23 229
#define K_PADDLE3_BUTTON K_AUX23
#define K_AUX24 230 #define K_AUX24 230
#define K_PADDLE4_BUTTON K_AUX24
#define K_AUX25 231 #define K_AUX25 231
#define K_TOUCHPAD K_AUX25 // PS4/PS5 touchpad button
#define K_AUX26 232 #define K_AUX26 232
#define K_AUX27 233 #define K_AUX27 233
#define K_AUX28 234 #define K_AUX28 234