diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-03-22 22:03:34 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-03-22 22:03:34 +0000 |
commit | 554d7ed9025bf629f9202c4e5c106f62853207a3 (patch) | |
tree | bbdfea0c02e0d1d241bb9e8bebd75c69176f8e16 /apps/plugins/zxbox | |
parent | ecde125fa7888a8d0c1fbfac1584caf5f58aa9a7 (diff) |
D2: Enable plugin building (using initial keymaps from FS#8708 by Andreas Mueller, with some tweaks).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16751 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/keymaps.h | 8 | ||||
-rw-r--r-- | apps/plugins/zxbox/zxbox_keyb.c | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h index 19503e1c78..791149c86c 100644 --- a/apps/plugins/zxbox/keymaps.h +++ b/apps/plugins/zxbox/keymaps.h @@ -102,6 +102,14 @@ #define ZX_SELECT BUTTON_RC_PLAY #define ZX_MENU BUTTON_RC_REC +#elif CONFIG_KEYPAD == COWOND2_PAD +#define ZX_UP BUTTON_UP +#define ZX_DOWN BUTTON_DOWN +#define ZX_LEFT BUTTON_LEFT +#define ZX_RIGHT BUTTON_RIGHT +#define ZX_SELECT BUTTON_SELECT +#define ZX_MENU BUTTON_MENU + #else #error Keymap not defined! diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c index e3fb92c43d..f1de0a051c 100644 --- a/apps/plugins/zxbox/zxbox_keyb.c +++ b/apps/plugins/zxbox/zxbox_keyb.c @@ -122,6 +122,17 @@ #define KBD_UP BUTTON_RC_VOL_UP #define KBD_DOWN BUTTON_RC_VOL_DOWN +#elif CONFIG_KEYPAD == COWOND2_PAD + +/* TODO: Check keyboard mappings */ + +#define KBD_SELECT BUTTON_SELECT +#define KBD_ABORT BUTTON_POWER +#define KBD_LEFT BUTTON_LEFT +#define KBD_RIGHT BUTTON_RIGHT +#define KBD_UP BUTTON_UP +#define KBD_DOWN BUTTON_DOWN + #endif |