commit 8c5fa105
Backport of dpad fix frm 2.10.0
Changed files
| M | source/code/gamecontroller.cpp before |
diff --git a/source/code/gamecontroller.cpp b/source/code/gamecontroller.cpp
index fa2ae91..2b41349 100644
--- a/source/code/gamecontroller.cpp
+++ b/source/code/gamecontroller.cpp
@@ -214,7 +214,7 @@ bool GameControllerIsLeftEvent(const SDL_Event& event) {
}
bool GameControllerIsRightEvent(const SDL_Event& event) {
- return GameControllerIsControllerDirectionEvent(event, SDL_CONTROLLER_BUTTON_DPAD_LEFT, SDL_CONTROLLER_AXIS_LEFTX);
+ return GameControllerIsControllerDirectionEvent(event, SDL_CONTROLLER_BUTTON_DPAD_RIGHT, SDL_CONTROLLER_AXIS_LEFTX);
}
bool GameControllerExtIsPlayerUpEvent(int playerNumber, const SDL_Event& event) {