From 6ee3fc81d9299693da29c204b6ebe243caeae46d Mon Sep 17 00:00:00 2001 From: Andrew Ryabinin Date: Fri, 6 Apr 2012 20:17:27 +0400 Subject: hm801: Add support for plugins. Change-Id: I81654db87d38324d8680a56bcdb7e9922ee5b619 --- apps/plugins/solitaire.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'apps/plugins/solitaire.c') diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index fcb985b6e3..fea92526be 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -578,6 +578,24 @@ CONFIG_KEYPAD == MROBE500_PAD # define HK_CUR2STACK "LEFT + POWER" # define HK_REM2STACK "RIGHT + POWER" +#elif (CONFIG_KEYPAD == HM801_PAD) +# define SOL_QUIT BUTTON_POWER +# define SOL_UP BUTTON_UP +# define SOL_DOWN BUTTON_DOWN +# define SOL_LEFT BUTTON_LEFT +# define SOL_RIGHT BUTTON_RIGHT +# define SOL_MOVE_PRE BUTTON_PREV +# define SOL_MOVE BUTTON_NEXT +# define SOL_DRAW BUTTON_PLAY +# define SOL_REM2CUR BUTTON_SELECT +# define SOL_CUR2STACK (BUTTON_POWER | BUTTON_LEFT) +# define SOL_REM2STACK (BUTTON_POWER | BUTTON_RIGHT) +# define HK_MOVE "PREV" +# define HK_DRAW "PLAY" +# define HK_REM2CUR "SELECT" +# define HK_CUR2STACK "POWER + LEFT" +# define HK_REM2STACK "POWER + RIGHT" + #else #error No keymap defined! #endif -- cgit v1.2.3