forked from len0rd/rockbox
Fixed scrolling for iPods (now scrolling the wheel forward will move down, and scrolling backward will move up).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8699 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
333a22e73c
commit
de23679fb2
1 changed files with 50 additions and 49 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
PLUGIN_HEADER
|
PLUGIN_HEADER
|
||||||
|
|
||||||
#define SETTINGS_FILE "/.rockbox/viewers/viewer.dat"
|
#define SETTINGS_FILE "/.rockbox/viewers/viewer.dat"
|
||||||
|
|
||||||
#define WRAP_TRIM 44 /* Max number of spaces to trim (arbitrary) */
|
#define WRAP_TRIM 44 /* Max number of spaces to trim (arbitrary) */
|
||||||
#define MAX_COLUMNS 64 /* Max displayable string len (over-estimate) */
|
#define MAX_COLUMNS 64 /* Max displayable string len (over-estimate) */
|
||||||
|
@ -117,10 +117,11 @@ PLUGIN_HEADER
|
||||||
#define VIEWER_COLUMN_LEFT (BUTTON_ON | BUTTON_LEFT)
|
#define VIEWER_COLUMN_LEFT (BUTTON_ON | BUTTON_LEFT)
|
||||||
#define VIEWER_COLUMN_RIGHT (BUTTON_ON | BUTTON_RIGHT)
|
#define VIEWER_COLUMN_RIGHT (BUTTON_ON | BUTTON_RIGHT)
|
||||||
|
|
||||||
|
/* iPods with the 4G pad */
|
||||||
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
|
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
|
||||||
#define VIEWER_QUIT BUTTON_MENU
|
#define VIEWER_QUIT BUTTON_MENU
|
||||||
#define VIEWER_PAGE_UP BUTTON_SCROLL_FWD
|
#define VIEWER_PAGE_UP BUTTON_SCROLL_BACK
|
||||||
#define VIEWER_PAGE_DOWN BUTTON_SCROLL_BACK
|
#define VIEWER_PAGE_DOWN BUTTON_SCROLL_FWD
|
||||||
#define VIEWER_SCREEN_LEFT BUTTON_LEFT
|
#define VIEWER_SCREEN_LEFT BUTTON_LEFT
|
||||||
#define VIEWER_SCREEN_RIGHT BUTTON_RIGHT
|
#define VIEWER_SCREEN_RIGHT BUTTON_RIGHT
|
||||||
#define VIEWER_MODE_WRAP (BUTTON_SELECT | BUTTON_LEFT)
|
#define VIEWER_MODE_WRAP (BUTTON_SELECT | BUTTON_LEFT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue