mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 18:12:54 -05:00
Patch #5056 by Jonathan Gordon, with rework and additions by me: Updated Viewer plugin. Replaces annoying mode-toggle key-combos with a settings menu, including a new 'Scroll by Line' option. I've also added a 'hands-free' auto-scroll feature and added lcd_setmargins to the plugin API, since we need it here.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9844 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0d6b5557a1
commit
07fcf77cb0
3 changed files with 354 additions and 394 deletions
|
|
@ -202,7 +202,7 @@ static const struct plugin_api rockbox_api = {
|
|||
settings_parseline,
|
||||
#ifndef SIMULATOR
|
||||
ata_sleep,
|
||||
ata_disk_is_active,
|
||||
ata_disk_is_active,
|
||||
#endif
|
||||
|
||||
/* dir */
|
||||
|
|
@ -357,7 +357,7 @@ static const struct plugin_api rockbox_api = {
|
|||
battery_level_safe,
|
||||
battery_time,
|
||||
#ifndef SIMULATOR
|
||||
battery_voltage,
|
||||
battery_voltage,
|
||||
#endif
|
||||
#ifdef HAVE_CHARGING
|
||||
charger_inserted,
|
||||
|
|
@ -434,6 +434,10 @@ static const struct plugin_api rockbox_api = {
|
|||
gui_synclist_scroll_left,
|
||||
#endif
|
||||
gui_synclist_do_button,
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
lcd_setmargins,
|
||||
#endif
|
||||
};
|
||||
|
||||
int plugin_load(const char* plugin, void* parameter)
|
||||
|
|
|
|||
|
|
@ -510,6 +510,10 @@ struct plugin_api {
|
|||
void (*gui_synclist_scroll_left)(struct gui_synclist * lists);
|
||||
#endif
|
||||
unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button);
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
void (*lcd_setmargins)(int x, int y);
|
||||
#endif
|
||||
};
|
||||
|
||||
/* plugin header */
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue