mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
touchscreen: Port quickscreen to gesture API
Use the gesture API to improve reliability, and allow press and hold to repeatedly increment or decrement a value like on button targets. Change-Id: Ic01b7a0802c3dec9f1534f5dd11e006b28a875b6
This commit is contained in:
parent
94468f693f
commit
0f99defe1f
2 changed files with 25 additions and 11 deletions
|
|
@ -28,6 +28,8 @@
|
|||
|
||||
#include "screen_access.h"
|
||||
|
||||
struct settings_list;
|
||||
|
||||
enum quickscreen_item {
|
||||
QUICKSCREEN_TOP = 0,
|
||||
QUICKSCREEN_LEFT,
|
||||
|
|
@ -43,11 +45,6 @@ enum quickscreen_return {
|
|||
QUICKSCREEN_CHANGED = 0x4,
|
||||
};
|
||||
|
||||
struct gui_quickscreen
|
||||
{
|
||||
const struct settings_list *items[QUICKSCREEN_ITEM_COUNT];
|
||||
};
|
||||
|
||||
extern int quick_screen_quick(int button_enter);
|
||||
int quickscreen_set_option(void *data);
|
||||
bool is_setting_quickscreenable(const struct settings_list *setting);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue