aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-03-17 12:54:36 +0100
committerRay <raysan5@gmail.com>2016-03-17 12:54:36 +0100
commit49df957058b2f602c7e6873fec0007fcd7a4dc4c (patch)
tree0a6ad896063681bee5b049cb0473b3b8102a4864 /src/raylib.h
parent95c1bf954423f00a4fb8c6dc72820c2174d62dfa (diff)
downloadraylib-49df957058b2f602c7e6873fec0007fcd7a4dc4c.tar.gz
raylib-49df957058b2f602c7e6873fec0007fcd7a4dc4c.zip
Add support for multiple gamepads on RPI
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h
index d891467e..a87b58da 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -174,8 +174,8 @@
// Gamepad Number
#define GAMEPAD_PLAYER1 0
#define GAMEPAD_PLAYER2 1
-#define GAMEPAD_PLAYER3 2
-#define GAMEPAD_PLAYER4 3
+#define GAMEPAD_PLAYER3 2 // Not supported
+#define GAMEPAD_PLAYER4 3 // Not supported
// Gamepad Buttons
// NOTE: Adjusted for a PS3 USB Controller
@@ -201,8 +201,8 @@
#define GAMEPAD_XBOX_BUTTON_START 7
#if defined(PLATFORM_RPI)
- #define GAMEPAD_XBOX_AXIS_DPAD_X 32
- #define GAMEPAD_XBOX_AXIS_DPAD_Y 64
+ #define GAMEPAD_XBOX_AXIS_DPAD_X 7
+ #define GAMEPAD_XBOX_AXIS_DPAD_Y 6
#define GAMEPAD_XBOX_AXIS_RIGHT_X 3
#define GAMEPAD_XBOX_AXIS_RIGHT_Y 4
#define GAMEPAD_XBOX_AXIS_LT 2