diff options
author | Garrett Brown <themagnificentmrb@gmail.com> | 2024-01-31 13:07:58 -0800 |
---|---|---|
committer | Garrett Brown <themagnificentmrb@gmail.com> | 2024-02-02 08:44:55 -0800 |
commit | 33cd322a114e8cd782e710697f3c14645641471b (patch) | |
tree | dd82112c897f25c7260b37267ff7da65d112365e | |
parent | 251b07c12edc38fae93fcd10daa7b0041cda6329 (diff) |
[Android][Peripherals] Fix input for joystick events without JOYSTICK source
-rw-r--r-- | xbmc/platform/android/activity/EventLoop.cpp | 4 |
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; |