plugins: Add touch API to plugin API and revamp touchscreen test

Change-Id: Iefb658693b03e0cda43e2a9fc93086485e790b4e
This commit is contained in:
Aidan MacDonald 2022-04-24 19:32:10 +01:00 committed by Solomon Peachy
parent 8aae723853
commit e2363b0e2c
3 changed files with 304 additions and 96 deletions

View file

@ -852,6 +852,20 @@ static const struct plugin_api rockbox_api = {
#ifdef USB_ENABLE_AUDIO
usb_audio_get_playing,
#endif
#ifdef HAVE_TOUCHSCREEN
action_get_touch_event,
action_gesture_reset,
action_gesture_get_event_in_vp,
action_gesture_get_event,
action_gesture_is_valid,
action_gesture_is_pressed,
gesture_reset,
gesture_process,
gesture_get_event_in_vp,
gesture_vel_reset,
gesture_vel_process,
gesture_vel_get,
#endif
};
static int plugin_buffer_handle;