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 Jan 31, 2024
1 parent 284df1a commit 95ca75a
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 @@ -127,7 +127,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 95ca75a

Please sign in to comment.