fix button mappings for the gigabeat

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10502 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcoen Hirschberg 2006-08-09 13:25:43 +00:00
parent 96e7c578f4
commit 91022738ee
3 changed files with 22 additions and 6 deletions

View file

@ -63,6 +63,10 @@ extern vo_open_t vo_rockbox_open;
#define MPEG_STOP BUTTON_POWER
#define MPEG_PAUSE BUTTON_PLAY
#elif CONFIG_KEYPAD == GIGABEAT_PAD
#define MPEG_STOP BUTTON_A
#define MPEG_PAUSE BUTTON_SELECT
#else
#error MPEGPLAYER: Unsupported keypad
#endif

View file

@ -70,6 +70,17 @@ PLUGIN_HEADER
#define ROCKPAINT_LEFT BUTTON_LEFT
#define ROCKPAINT_RIGHT BUTTON_RIGHT
#elif CONFIG_KEYPAD == GIGABEAT_PAD
#define ROCKPAINT_QUIT BUTTON_A
#define ROCKPAINT_DRAW BUTTON_SELECT
#define ROCKPAINT_MENU BUTTON_MENU
#define ROCKPAINT_TOOLBAR BUTTON_POWER
#define ROCKPAINT_TOOLBAR2 ( BUTTON_POWER | BUTTON_LEFT )
#define ROCKPAINT_UP BUTTON_UP
#define ROCKPAINT_DOWN BUTTON_DOWN
#define ROCKPAINT_LEFT BUTTON_LEFT
#define ROCKPAINT_RIGHT BUTTON_RIGHT
#elif ( CONFIG_KEYPAD == IRIVER_H10_PAD )
#define ROCKPAINT_QUIT BUTTON_POWER
#define ROCKPAINT_DRAW BUTTON_FF

View file

@ -162,13 +162,14 @@
#elif CONFIG_KEYPAD == GIGABEAT_PAD
/* TODO: Check keyboard mappings */
#define KBD_MODES /* Gigabeat uses 2 modes, picker and line edit */
#define KBD_SELECT (BUTTON_MENU | BUTTON_REL) /* backspace in line edit */
#define KBD_SELECT_PRE BUTTON_MENU
#define KBD_DONE BUTTON_POWER
#define KBD_CURSOR_RIGHT (BUTTON_POWER | BUTTON_RIGHT)
#define KBD_CURSOR_LEFT (BUTTON_POWER | BUTTON_LEFT)
#define KBD_SELECT BUTTON_SELECT
#define KBD_PAGE_FLIP (BUTTON_POWER | BUTTON_MENU)
#define KBD_DONE_PRE BUTTON_POWER
#define KBD_DONE (BUTTON_POWER | BUTTON_REL)
#define KBD_ABORT BUTTON_A
#define KBD_BACKSPACE BUTTON_MENU
#define KBD_LEFT BUTTON_LEFT
#define KBD_RIGHT BUTTON_RIGHT
#define KBD_UP BUTTON_UP