Updated keymaps for Sansa Connect
* added scroll wheel to doom * added scroll wheel to brickmania * changed spacerocks to use scroll wheel instead of buttons Change-Id: I9d6ff0b4c5deea147178f5cd9f96ae435e7b5cd8
This commit is contained in:
parent
c1c0318c8d
commit
a6e9ecb086
3 changed files with 18 additions and 4 deletions
|
@ -111,8 +111,7 @@
|
||||||
|
|
||||||
#elif CONFIG_KEYPAD == SANSA_C200_PAD || \
|
#elif CONFIG_KEYPAD == SANSA_C200_PAD || \
|
||||||
CONFIG_KEYPAD == SANSA_CLIP_PAD || \
|
CONFIG_KEYPAD == SANSA_CLIP_PAD || \
|
||||||
CONFIG_KEYPAD == SANSA_M200_PAD || \
|
CONFIG_KEYPAD == SANSA_M200_PAD
|
||||||
CONFIG_KEYPAD == SANSA_CONNECT_PAD
|
|
||||||
#define QUIT BUTTON_POWER
|
#define QUIT BUTTON_POWER
|
||||||
#define LEFT BUTTON_LEFT
|
#define LEFT BUTTON_LEFT
|
||||||
#define RIGHT BUTTON_RIGHT
|
#define RIGHT BUTTON_RIGHT
|
||||||
|
@ -122,6 +121,18 @@ CONFIG_KEYPAD == SANSA_CONNECT_PAD
|
||||||
#define UP BUTTON_UP
|
#define UP BUTTON_UP
|
||||||
#define DOWN BUTTON_DOWN
|
#define DOWN BUTTON_DOWN
|
||||||
|
|
||||||
|
#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
|
||||||
|
#define QUIT BUTTON_POWER
|
||||||
|
#define LEFT BUTTON_LEFT
|
||||||
|
#define RIGHT BUTTON_RIGHT
|
||||||
|
#define SELECT BUTTON_SELECT
|
||||||
|
#define UP BUTTON_UP
|
||||||
|
#define DOWN BUTTON_DOWN
|
||||||
|
|
||||||
|
#define SCROLL_FWD(x) ((x) & BUTTON_SCROLL_FWD)
|
||||||
|
#define SCROLL_BACK(x) ((x) & BUTTON_SCROLL_BACK)
|
||||||
|
|
||||||
|
|
||||||
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
||||||
#define QUIT BUTTON_POWER
|
#define QUIT BUTTON_POWER
|
||||||
#define LEFT BUTTON_LEFT
|
#define LEFT BUTTON_LEFT
|
||||||
|
|
|
@ -453,6 +453,9 @@ void I_ShutdownGraphics(void)
|
||||||
#define DOOMBUTTON_MAP BUTTON_BOTTOMRIGHT
|
#define DOOMBUTTON_MAP BUTTON_BOTTOMRIGHT
|
||||||
|
|
||||||
#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
|
#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
|
||||||
|
#define DOOMBUTTON_SCROLLWHEEL
|
||||||
|
#define DOOMBUTTON_SCROLLWHEEL_CC BUTTON_SCROLL_BACK
|
||||||
|
#define DOOMBUTTON_SCROLLWHEEL_CW BUTTON_SCROLL_FWD
|
||||||
#define DOOMBUTTON_UP BUTTON_UP
|
#define DOOMBUTTON_UP BUTTON_UP
|
||||||
#define DOOMBUTTON_DOWN BUTTON_DOWN
|
#define DOOMBUTTON_DOWN BUTTON_DOWN
|
||||||
#define DOOMBUTTON_LEFT BUTTON_LEFT
|
#define DOOMBUTTON_LEFT BUTTON_LEFT
|
||||||
|
|
|
@ -259,8 +259,8 @@
|
||||||
#define AST_QUIT BUTTON_POWER
|
#define AST_QUIT BUTTON_POWER
|
||||||
#define AST_THRUST BUTTON_UP
|
#define AST_THRUST BUTTON_UP
|
||||||
#define AST_HYPERSPACE BUTTON_DOWN
|
#define AST_HYPERSPACE BUTTON_DOWN
|
||||||
#define AST_LEFT BUTTON_LEFT
|
#define AST_LEFT BUTTON_SCROLL_BACK
|
||||||
#define AST_RIGHT BUTTON_RIGHT
|
#define AST_RIGHT BUTTON_SCROLL_FWD
|
||||||
#define AST_FIRE BUTTON_SELECT
|
#define AST_FIRE BUTTON_SELECT
|
||||||
|
|
||||||
#elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD)
|
#elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD)
|
||||||
|
|
Loading…
Reference in a new issue