aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Brown <themagnificentmrb@gmail.com>2024-02-14 12:17:59 -0800
committerGarrett Brown <themagnificentmrb@gmail.com>2024-02-14 16:44:52 -0800
commit5a8b49e4c052c54ca07c2f0b3a7a51b219073e60 (patch)
tree60330485d98334ffc40688e7f19938179e74714a
parent1de048630cec0cb9f190fb3e1e9d3c90c669b1bf (diff)
Revert "[Android][Peripherals] Fix input for joystick events without JOYSTICK source"
This reverts commit 95ca75a694ea6aa05a6d38fdb1bc77b526874c86.
-rw-r--r--xbmc/platform/android/activity/EventLoop.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/xbmc/platform/android/activity/EventLoop.cpp b/xbmc/platform/android/activity/EventLoop.cpp
index 28af5ec056..ac5fc61565 100644
--- a/xbmc/platform/android/activity/EventLoop.cpp
+++ b/xbmc/platform/android/activity/EventLoop.cpp
@@ -127,9 +127,7 @@ int32_t CEventLoop::processInput(AInputEvent* event)
int32_t source = AInputEvent_getSource(event);
// handle joystick input
- if (IS_FROM_SOURCE(source, AINPUT_SOURCE_GAMEPAD) ||
- IS_FROM_SOURCE(source, AINPUT_SOURCE_JOYSTICK) ||
- IS_FROM_SOURCE(source, AINPUT_SOURCE_KEYBOARD))
+ if (IS_FROM_SOURCE(source, AINPUT_SOURCE_GAMEPAD) || IS_FROM_SOURCE(source, AINPUT_SOURCE_JOYSTICK))
{
if (m_inputHandler->onJoyStickEvent(event))
return true;