Commit 9a446aa92efc6beed17b46736a760a8c52ff4b3e

Sam Lantinga 2020-11-06T13:55:51

Note that SDL_CONTROLLER_BUTTON_AUX1 is sent for the PS4/PS5 touchpad button on the HIDAPI driver.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_gamecontroller.h b/include/SDL_gamecontroller.h
index 87f08b2..d1350e4 100644
--- a/include/SDL_gamecontroller.h
+++ b/include/SDL_gamecontroller.h
@@ -363,7 +363,7 @@ typedef enum
     SDL_CONTROLLER_BUTTON_DPAD_DOWN,
     SDL_CONTROLLER_BUTTON_DPAD_LEFT,
     SDL_CONTROLLER_BUTTON_DPAD_RIGHT,
-    SDL_CONTROLLER_BUTTON_AUX1,	// Xbox Elite paddle, Nintendo Switch Pro capture button
+    SDL_CONTROLLER_BUTTON_AUX1,	// Xbox Elite paddle, PS4/PS5 touchpad button, Nintendo Switch Pro capture button
     SDL_CONTROLLER_BUTTON_AUX2,	// Xbox Elite paddle
     SDL_CONTROLLER_BUTTON_AUX3,	// Xbox Elite paddle
     SDL_CONTROLLER_BUTTON_AUX4,	// Xbox Elite paddle