Skip to content

Commit

Permalink
restore some relative pointer stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterk authored and LibretroAdmin committed Jun 10, 2024
1 parent c72f861 commit 65e8871
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions input/drivers/android_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,15 @@ enum {
AMOTION_EVENT_BUTTON_BACK = 1 << 3,
AMOTION_EVENT_BUTTON_FORWARD = 1 << 4,
AMOTION_EVENT_AXIS_VSCROLL = 9,
AMOTION_EVENT_ACTION_HOVER_MOVE = 7
AMOTION_EVENT_ACTION_HOVER_MOVE = 7,
AINPUT_SOURCE_STYLUS = 0x00004000
};
#endif
/* If using an NDK lower than 16b then add missing definition */
#ifndef __ANDROID_API_O_MR1__
enum {
AINPUT_SOURCE_MOUSE_RELATIVE = 0x00020000 | AINPUT_SOURCE_CLASS_NAVIGATION
};
#endif
AINPUT_SOURCE_STYLUS = 0x00004000
};
#endif

/* If using an SDK lower than 24 then add missing relative axis codes */
Expand Down Expand Up @@ -1514,6 +1513,7 @@ static void android_input_poll_input_default(android_input_t *android)
engine_handle_touchpad(android_app, event, port);
/* Only handle events from a touchscreen or mouse */
else if ((source & (AINPUT_SOURCE_TOUCHSCREEN
| AINPUT_SOURCE_MOUSE_RELATIVE
| AINPUT_SOURCE_STYLUS | AINPUT_SOURCE_MOUSE)))
android_input_poll_event_type_motion(android, event,
port, source);
Expand Down

0 comments on commit 65e8871

Please sign in to comment.