diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:00 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:00 +0000 |
commit | b09d3aec392538ca0934644ff6357c41aaa4c323 (patch) | |
tree | 0603cf4ef59e84ee4e0c172e3b418d8dccac664c /apps/plugins/zxbox | |
parent | fa5cd0d3bf744f75be0593a7e2c2083810f16c21 (diff) | |
download | rockbox-b09d3aec392538ca0934644ff6357c41aaa4c323.tar.gz rockbox-b09d3aec392538ca0934644ff6357c41aaa4c323.zip |
Add MPIO HD200 port - changed files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/keymaps.h | 9 | ||||
-rw-r--r-- | apps/plugins/zxbox/zxbox_keyb.c | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h index 3ca5451fdb..ee2a8d5f4a 100644 --- a/apps/plugins/zxbox/keymaps.h +++ b/apps/plugins/zxbox/keymaps.h | |||
@@ -189,6 +189,15 @@ | |||
189 | #define ZX_SELECT BUTTON_OK | 189 | #define ZX_SELECT BUTTON_OK |
190 | #define ZX_MENU BUTTON_MENU | 190 | #define ZX_MENU BUTTON_MENU |
191 | 191 | ||
192 | #elif CONFIG_KEYPAD == MPIO_HD200_PAD | ||
193 | |||
194 | #define ZX_MENU (BUTTON_REC|BUTTON_PLAY) | ||
195 | #define ZX_UP BUTTON_PREV | ||
196 | #define ZX_DOWN BUTTON_NEXT | ||
197 | #define ZX_SELECT BUTTON_SELECT | ||
198 | #define ZX_LEFT BUTTON_VOL_DOWN | ||
199 | #define ZX_RIGHT BUTTON_VOL_UP | ||
200 | |||
192 | #else | 201 | #else |
193 | #error Keymap not defined! | 202 | #error Keymap not defined! |
194 | 203 | ||
diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c index b48c5ec4ac..bc7e3aca2c 100644 --- a/apps/plugins/zxbox/zxbox_keyb.c +++ b/apps/plugins/zxbox/zxbox_keyb.c | |||
@@ -184,6 +184,15 @@ | |||
184 | #define KBD_UP BUTTON_UP | 184 | #define KBD_UP BUTTON_UP |
185 | #define KBD_DOWN BUTTON_DOWN | 185 | #define KBD_DOWN BUTTON_DOWN |
186 | 186 | ||
187 | #elif CONFIG_KEYPAD == MPIO_HD200_PAD | ||
188 | |||
189 | #define KBD_SELECT BUTTON_SELECT | ||
190 | #define KBD_ABORT BUTTON_REC | ||
191 | #define KBD_LEFT BUTTON_VOL_DOWN | ||
192 | #define KBD_RIGHT BUTTON_VOL_UP | ||
193 | #define KBD_UP BUTTON_PREV | ||
194 | #define KBD_DOWN BUTTON_NEXT | ||
195 | |||
187 | #endif | 196 | #endif |
188 | 197 | ||
189 | #ifdef HAVE_TOUCHSCREEN | 198 | #ifdef HAVE_TOUCHSCREEN |