diff options
author | Nils Stec <nils.stec@gmail.com> | 2014-06-30 20:24:15 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-06-30 21:20:15 +0200 |
commit | c9816f57bf8782fd2ce6487aa0dc0f739145b631 (patch) | |
tree | af0f7314182fb8ee278ced53b7f79615312f32d2 /apps/plugins/zxbox | |
parent | 6e575b6c7011827c042cba7b27537c1ceec9ef24 (diff) |
Introduce plugin keymaps for the Sony NWZ Series
Change-Id: I46b8766bd44118bce4931b7ee71815ae5f51cb2e
Reviewed-on: http://gerrit.rockbox.org/879
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/keymaps.h | 8 | ||||
-rw-r--r-- | apps/plugins/zxbox/zxbox_keyb.c | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h index 659bcca40a..b14a296d42 100644 --- a/apps/plugins/zxbox/keymaps.h +++ b/apps/plugins/zxbox/keymaps.h @@ -246,6 +246,14 @@ #define ZX_LEFT BUTTON_LEFT #define ZX_RIGHT BUTTON_RIGHT +#elif (CONFIG_KEYPAD == SONY_NWZ_PAD) +#define ZX_MENU BUTTON_POWER +#define ZX_UP BUTTON_UP +#define ZX_DOWN BUTTON_DOWN +#define ZX_LEFT BUTTON_LEFT +#define ZX_RIGHT BUTTON_RIGHT +#define ZX_SELECT BUTTON_PLAY + #else #error Keymap not defined! diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c index 62f593df37..b4b39d57da 100644 --- a/apps/plugins/zxbox/zxbox_keyb.c +++ b/apps/plugins/zxbox/zxbox_keyb.c @@ -254,6 +254,14 @@ #define KBD_UP BUTTON_UP #define KBD_DOWN BUTTON_DOWN +#elif (CONFIG_KEYPAD == SONY_NWZ_PAD) +#define KBD_SELECT BUTTON_PLAY +#define KBD_ABORT BUTTON_BACK +#define KBD_LEFT BUTTON_LEFT +#define KBD_RIGHT BUTTON_RIGHT +#define KBD_UP BUTTON_UP +#define KBD_DOWN BUTTON_DOWN + #endif #ifdef HAVE_TOUCHSCREEN |