Skip to content

Commit

Permalink
[Android][Peripherals] Fix input for joystick events without JOYSTICK…
Browse files Browse the repository at this point in the history
… source
  • Loading branch information
garbear committed Mar 9, 2024
1 parent c989d9c commit 1294dfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/platform/android/activity/EventLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,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;
Expand Down

0 comments on commit 1294dfd

Please sign in to comment.