aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Brown <themagnificentmrb@gmail.com>2024-01-31 13:07:58 -0800
committerGarrett Brown <themagnificentmrb@gmail.com>2024-02-02 08:44:55 -0800
commit33cd322a114e8cd782e710697f3c14645641471b (patch)
treedd82112c897f25c7260b37267ff7da65d112365e
parent251b07c12edc38fae93fcd10daa7b0041cda6329 (diff)
[Android][Peripherals] Fix input for joystick events without JOYSTICK source
-rw-r--r--xbmc/platform/android/activity/EventLoop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/platform/android/activity/EventLoop.cpp b/xbmc/platform/android/activity/EventLoop.cpp
index 47ecdad846..a90dbbcb69 100644
--- a/xbmc/platform/android/activity/EventLoop.cpp
+++ b/xbmc/platform/android/activity/EventLoop.cpp
@@ -132,7 +132,9 @@ 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))
+ if (IS_FROM_SOURCE(source, AINPUT_SOURCE_GAMEPAD) ||
+ IS_FROM_SOURCE(source, AINPUT_SOURCE_JOYSTICK) ||
+ IS_FROM_SOURCE(source, AINPUT_SOURCE_KEYBOARD))
{
if (m_inputHandler->onJoyStickEvent(event))
return true;