summaryrefslogtreecommitdiff
path: root/apps/plugins/solitaire.c
diff options
context:
space:
mode:
authorNils Stec <nils.stec@gmail.com>2014-06-30 20:24:15 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-06-30 21:20:15 +0200
commitc9816f57bf8782fd2ce6487aa0dc0f739145b631 (patch)
treeaf0f7314182fb8ee278ced53b7f79615312f32d2 /apps/plugins/solitaire.c
parent6e575b6c7011827c042cba7b27537c1ceec9ef24 (diff)
downloadrockbox-c9816f57bf8782fd2ce6487aa0dc0f739145b631.tar.gz
rockbox-c9816f57bf8782fd2ce6487aa0dc0f739145b631.zip
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/solitaire.c')
-rw-r--r--apps/plugins/solitaire.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index 0a1dc36cf5..d97ae082a7 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -617,6 +617,23 @@ CONFIG_KEYPAD == MROBE500_PAD
617# define HK_CUR2STACK "POWER + LEFT" 617# define HK_CUR2STACK "POWER + LEFT"
618# define HK_REM2STACK "POWER + RIGHT" 618# define HK_REM2STACK "POWER + RIGHT"
619 619
620#elif (CONFIG_KEYPAD == SONY_NWZ_PAD)
621#define SOL_QUIT BUTTON_BACK
622#define SOL_UP BUTTON_UP
623#define SOL_DOWN BUTTON_DOWN
624#define SOL_LEFT BUTTON_LEFT
625#define SOL_RIGHT BUTTON_RIGHT
626#define SOL_MOVE BUTTON_PLAY
627#define SOL_DRAW (BUTTON_POWER|BUTTON_UP)
628#define SOL_REM2CUR (BUTTON_POWER|BUTTON_DOWN)
629#define SOL_CUR2STACK (BUTTON_POWER|BUTTON_LEFT)
630#define SOL_REM2STACK (BUTTON_POWER|BUTTON_RIGHT)
631#define HK_MOVE "Play"
632#define HK_DRAW "Option+Up"
633#define HK_REM2CUR "Option+Down"
634#define HK_CUR2STACK "Option+Left"
635#define HK_REM2STACK "Option+Right"
636
620#else 637#else
621#error No keymap defined! 638#error No keymap defined!
622#endif 639#endif