summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobert Menes <rmenes@rockbox.org>2009-12-02 01:56:39 +0000
committerRobert Menes <rmenes@rockbox.org>2009-12-02 01:56:39 +0000
commite626dcba4079f3e3bacf7128e6a645d087b506c5 (patch)
treefdb2568f3bb9614b55846c5bc63ad8ac8f52a9ed /apps
parent6ea0c3f2298c161c138f6a23418b0c7ddd5dfb77 (diff)
Start committing plugin keymaps for the Philips GoGear SA9200.
I still have more plugins to finish, but this is an initial start and I can at least get them under version control in case I need to revise any. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23813 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/battery_bench.c7
-rw-r--r--apps/plugins/blackjack.c18
-rw-r--r--apps/plugins/bounce.c8
-rw-r--r--apps/plugins/brickmania.c10
-rw-r--r--apps/plugins/calculator.c11
-rw-r--r--apps/plugins/calendar.c10
-rw-r--r--apps/plugins/chessclock.c10
-rw-r--r--apps/plugins/chopper.c6
-rw-r--r--apps/plugins/clix.c8
-rw-r--r--apps/plugins/cube.c10
-rw-r--r--apps/plugins/dict.c2
-rw-r--r--apps/plugins/lamp.c4
-rw-r--r--apps/plugins/pacbox/pacbox.h11
-rw-r--r--apps/plugins/rockblox1d.c4
-rw-r--r--apps/plugins/snake.c8
-rw-r--r--apps/plugins/stats.c3
-rw-r--r--apps/plugins/wormlet.c10
-rw-r--r--apps/plugins/xobox.c9
18 files changed, 148 insertions, 1 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index c0b6d44e9f..7257e2c26f 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -180,6 +180,13 @@ PLUGIN_HEADER
#define BATTERY_ON_TXT "MENU - start"
#define BATTERY_OFF_TXT "POWER"
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+
+#define BATTERY_ON BUTTON_MENU
+#define BATTERY_OFF BUTTON_POWER
+#define BATTERY_ON_TXT "MENU - start"
+#define BATTERY_OFF_TXT "POWER"
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define BATTERY_OFF BUTTON_POWER
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index d67ae6e058..bc7fb928e5 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -393,6 +393,24 @@ enum {
#define BJACK_RIGHT BUTTON_RIGHT
#define BJACK_LEFT BUTTON_LEFT
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define BJACK_SELECT_NAME "MENU"
+#define BJACK_STAY_NAME "VOL-"
+#define BJACK_RESUME_NAME "Right"
+#define BJACK_QUIT_NAME "POWER"
+#define BJACK_DOUBLE_NAME "PLAY"
+#define BJACK_SELECT BUTTON_MENU
+#define BJACK_QUIT BUTTON_POWER
+#define BJACK_MAX BUTTON_VOL_UP
+#define BJACK_MIN BUTTON_VOL_DOWN
+#define BJACK_STAY BUTTON_VOL_DOWN
+#define BJACK_DOUBLEDOWN BUTTON_PLAY
+#define BJACK_RESUME BUTTON_RIGHT
+#define BJACK_UP BUTTON_UP
+#define BJACK_DOWN BUTTON_DOWN
+#define BJACK_RIGHT BUTTON_NEXT
+#define BJACK_LEFT BUTTON_PREV
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define BJACK_QUIT_NAME "POWER"
#define BJACK_DOUBLE_NAME "Vol-"
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index 0768c5963d..d0a8e8b48d 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -170,6 +170,14 @@ PLUGIN_HEADER
#define BOUNCE_QUIT BUTTON_POWER
#define BOUNCE_MODE BUTTON_MENU
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define BOUNCE_LEFT BUTTON_PREV
+#define BOUNCE_RIGHT BUTTON_NEXT
+#define BOUNCE_UP BUTTON_UP
+#define BOUNCE_DOWN BUTTON_DOWN
+#define BOUNCE_QUIT BUTTON_POWER
+#define BOUNCE_MODE BUTTON_MENU
+
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define BOUNCE_QUIT BUTTON_POWER
#define BOUNCE_MODE BUTTON_MENU
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index 8549d7c1e2..f7ad252932 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -192,6 +192,13 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define UP BUTTON_UP
#define DOWN BUTTON_DOWN
+#define QUIT BUTTON_POWER
+#define LEFT BUTTON_PREV
+#define RIGHT BUTTON_NEXT
+#define SELECT BUTTON_PLAY
+#define UP BUTTON_UP
+#define DOWN BUTTON_DOWN
+
#elif CONFIG_KEYPAD == COWOND2_PAD
#define QUIT BUTTON_POWER
@@ -1096,7 +1103,8 @@ static int brickmania_help(void)
"< & >", "Moves", "the", "paddle", "",
#if CONFIG_KEYPAD == ONDIO_PAD
"MENU:",
-#elif (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IAUDIO_M3_PAD)
+#elif (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IAUDIO_M3_PAD) \
+ (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
"PLAY:",
#elif CONFIG_KEYPAD == IRIVER_H300_PAD
"NAVI:",
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index a14748f409..93bed2adcb 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -330,6 +330,17 @@ PLUGIN_HEADER
#define CALCULATOR_CALC BUTTON_MENU
#define CALCULATOR_CLEAR BUTTON_VIEW
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+
+#define CALCULATOR_LEFT BUTTON_PREV
+#define CALCULATOR_RIGHT BUTTON_NEXT
+#define CALCULATOR_UP BUTTON_UP
+#define CALCULATOR_DOWN BUTTON_DOWN
+#define CALCULATOR_QUIT BUTTON_POWER
+#define CALCULATOR_INPUT BUTTON_PLAY
+#define CALCULATOR_CALC BUTTON_MENU
+#define CALCULATOR_CLEAR BUTTON_RIGHT
+
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define CALCULATOR_QUIT BUTTON_POWER
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c
index 4ac3128ab0..0c3a4020ed 100644
--- a/apps/plugins/calendar.c
+++ b/apps/plugins/calendar.c
@@ -184,6 +184,16 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define CALENDAR_NEXT_MONTH BUTTON_VOL_DOWN
#define CALENDAR_PREV_MONTH BUTTON_VOL_UP
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define CALENDAR_QUIT BUTTON_POWER
+#define CALENDAR_SELECT BUTTON_PLAY
+#define CALENDAR_NEXT_WEEK BUTTON_DOWN
+#define CALENDAR_PREV_WEEK BUTTON_UP
+#define CALENDAR_NEXT_DAY BUTTON_NEXT
+#define CALENDAR_PREV_DAY BUTTON_PREV
+#define CALENDAR_NEXT_MONTH BUTTON_VOL_DOWN
+#define CALENDAR_PREV_MONTH BUTTON_VOL_UP
+
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define CALENDAR_QUIT BUTTON_POWER
#define CALENDAR_SELECT BUTTON_MENU
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c
index 8eaaf05adf..1bd6c80940 100644
--- a/apps/plugins/chessclock.c
+++ b/apps/plugins/chessclock.c
@@ -234,6 +234,16 @@ PLUGIN_HEADER
#define CHC_SETTINGS_OK BUTTON_SELECT
#define CHC_SETTINGS_CANCEL BUTTON_POWER
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define CHC_QUIT BUTTON_POWER
+#define CHC_STARTSTOP BUTTON_PLAY
+#define CHC_RESET BUTTON_RIGHT
+#define CHC_MENU BUTTON_MENU
+#define CHC_SETTINGS_INC BUTTON_NEXT
+#define CHC_SETTINGS_DEC BUTTON_PREV
+#define CHC_SETTINGS_OK BUTTON_PLAY
+#define CHC_SETTINGS_CANEL BUTTON_POWER
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define CHC_QUIT BUTTON_POWER
#define CHC_RESET (BUTTON_VOL_UP|BUTTON_VOL_DOWN)
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 1ff0a20559..3233675c23 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -134,6 +134,12 @@ Still To do:
#define ACTION2 BUTTON_SELECT
#define ACTIONTEXT "MENU"
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define QUIT BUTTON_POWER
+#define ACTION BUTTON_MENU
+#define ACTION2 BUTTON_PLAY
+#define ACTIONTEXT "MENU"
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD || \
CONFIG_KEYPAD == ONDAVX777_PAD || \
CONFIG_KEYPAD == MROBE500_PAD
diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c
index 68c56ec1d5..e6b70b602a 100644
--- a/apps/plugins/clix.c
+++ b/apps/plugins/clix.c
@@ -138,6 +138,14 @@ PLUGIN_HEADER
#define CLIX_BUTTON_UP BUTTON_UP
#define CLIX_BUTTON_DOWN BUTTON_DOWN
+#elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
+#define CLIX_BUTTON_QUIT BUTTON_POWER
+#define CLIX_BUTTON_LEFT BUTTON_PREV
+#define CLIX_BUTTON_RIGHT BUTTON_NEXT
+#define CLIX_BUTTON_CLICK BUTTON_PLAY
+#define CLIX_BUTTON_UP BUTTON_UP
+#define CLIX_BUTTON_DOWN BUTTON_DOWN
+
#elif CONFIG_KEYPAD == COWOND2_PAD
#define CLIX_BUTTON_QUIT BUTTON_POWER
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 1c072a2edd..686152c704 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -239,6 +239,16 @@ PLUGIN_HEADER
#define CUBE_PAUSE BUTTON_SELECT
#define CUBE_HIGHSPEED BUTTON_VIEW
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define CUBE_QUIT BUTTON_POWER
+#define CUBE_NEXT BUTTON_NEXT
+#define CUBE_PREV BUTTON_PREV
+#define CUBE_INC BUTTON_UP
+#define CUBE_DEC BUTTON_DOWN
+#define CUBE_MODE BUTTON_MENU
+#define CUBE_PAUSE BUTTON_SELECT
+#define CUBE_HIGHSPEED BUTTON_RIGHT
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define CUBE_QUIT BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX777_PAD
diff --git a/apps/plugins/dict.c b/apps/plugins/dict.c
index fda915ba6c..8268e81811 100644
--- a/apps/plugins/dict.c
+++ b/apps/plugins/dict.c
@@ -140,6 +140,8 @@ long reverse (long N) {
#define LP_QUIT BUTTON_BACK
#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
#define LP_QUIT BUTTON_POWER
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define LP_QUIT BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define LP_QUIT BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX777_PAD
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c
index 0775ef84e6..1c60cba78f 100644
--- a/apps/plugins/lamp.c
+++ b/apps/plugins/lamp.c
@@ -82,6 +82,10 @@ PLUGIN_HEADER
# define LAMP_LEFT BUTTON_LEFT
# define LAMP_RIGHT BUTTON_RIGHT
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+# define LAMP_LEFT BUTTON_PREV
+# define LAMP_RIGHT BUTTON_NEXT
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD
# define LAMP_LEFT BUTTON_VOL_DOWN
# define LAMP_RIGHT BUTTON_VOL_UP
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index ac13e24d2c..85ec648a7a 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -192,6 +192,17 @@
#define PACMAN_COIN BUTTON_VIEW
#define PACMAN_MENU BUTTON_MENU
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+
+#define PACMAN_UP BUTTON_UP
+#define PACMAN_DOWN BUTTON_DOWN
+#define PACMAN_LEFT BUTTON_PREV
+#define PACMAN_RIGHT BUTTON_NEXT
+#define PACMAN_1UP BUTTON_VOL_UP
+#define PACMAN_2UP BUTTON_VOL_DOWN
+#define PACMAN_COIN BUTTON_RIGHT
+#define PACMAN_MENU BUTTON_MENU
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define PACMAN_MENU (BUTTON_MENU|BUTTON_REL)
diff --git a/apps/plugins/rockblox1d.c b/apps/plugins/rockblox1d.c
index 441615845d..d9b055195e 100644
--- a/apps/plugins/rockblox1d.c
+++ b/apps/plugins/rockblox1d.c
@@ -101,6 +101,10 @@ PLUGIN_HEADER
#define ONEDROCKBLOX_DOWN BUTTON_SELECT
#define ONEDROCKBLOX_QUIT BUTTON_POWER
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define ONEDROCKBLOX_DOWN BUTTON_PLAY
+#define ONEDROCKBLOX_QUIT BUTTON_POWER
+
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define ONEDROCKBLOX_DOWN BUTTON_MENU
#define ONEDROCKBLOX_QUIT BUTTON_POWER
diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c
index 87b68d2055..461a862682 100644
--- a/apps/plugins/snake.c
+++ b/apps/plugins/snake.c
@@ -170,6 +170,14 @@ PLUGIN_HEADER
#define SNAKE_DOWN BUTTON_DOWN
#define SNAKE_PLAYPAUSE BUTTON_MENU
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define SNAKE_QUIT BUTTON_POWER
+#define SNAKE_LEFT BUTTON_PREV
+#define SNAKE_RIGHT BUTTON_NEXT
+#define SNAKE_UP BUTTON_UP
+#define SNAKE_DOWN BUTTON_DOWN
+#define SNAKE_PLAYPAUSE BUTTON_MENU
+
#elif CONFIG_KEYPAD == SAMSUNG_YH_PAD
#define SNAKE_QUIT BUTTON_REC
#define SNAKE_LEFT BUTTON_LEFT
diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c
index 16eac4769c..e8a09ada3b 100644
--- a/apps/plugins/stats.c
+++ b/apps/plugins/stats.c
@@ -94,6 +94,9 @@ static bool abort;
#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
#define STATS_STOP BUTTON_POWER
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define STATS_STOP BUTTON_POWER
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define STATS_STOP BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX777_PAD
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index 3f67e61857..bc7d8bf545 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -232,6 +232,16 @@ PLUGIN_HEADER
#define BTN_QUIT BUTTON_POWER
#define BTN_STOPRESET BUTTON_VIEW
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+
+#define BTN_DIR_UP BUTTON_UP
+#define BTN_DIR_DOWN BUTTON_DOWN
+#define BTN_DIR_LEFT BUTTON_PREV
+#define BTN_DIR_RIGHT BUTTON_RIGHT
+#define BTN_STARTPAUSE BUTTON_MENU
+#define BTN_QUIT BUTTON_POWER
+#define BTN_STOPRESET BUTTON_RIGHT
+
#elif (CONFIG_KEYPAD == ONDAVX747_PAD) || \
(CONFIG_KEYPAD == ONDAVX777_PAD) || \
CONFIG_KEYPAD == MROBE500_PAD
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c
index 423322098a..a105e1a4b6 100644
--- a/apps/plugins/xobox.c
+++ b/apps/plugins/xobox.c
@@ -199,6 +199,15 @@ PLUGIN_HEADER
#define DOWN BUTTON_DOWN
#define PAUSE BUTTON_VIEW
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+
+#define QUIT BUTTON_POWER
+#define LEFT BUTTON_PREV
+#define RIGHT BUTTON_NEXT
+#define UP BUTTON_UP
+#define DOWN BUTTON_DOWN
+#define PAUSE BUTTON_MENU
+
#elif CONFIG_KEYPAD == ONDAVX747_PAD || \
CONFIG_KEYPAD == ONDAVX777_PAD || \
CONFIG_KEYPAD == MROBE500_PAD