diff options
-rw-r--r-- | apps/plugins/brickmania.c | 15 | ||||
-rw-r--r-- | apps/plugins/doom/i_video.c | 3 | ||||
-rw-r--r-- | apps/plugins/spacerocks.c | 4 |
3 files changed, 18 insertions, 4 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 4983d5a417..3e7ea27441 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -111,8 +111,7 @@ | |||
111 | 111 | ||
112 | #elif CONFIG_KEYPAD == SANSA_C200_PAD || \ | 112 | #elif CONFIG_KEYPAD == SANSA_C200_PAD || \ |
113 | CONFIG_KEYPAD == SANSA_CLIP_PAD || \ | 113 | CONFIG_KEYPAD == SANSA_CLIP_PAD || \ |
114 | CONFIG_KEYPAD == SANSA_M200_PAD || \ | 114 | CONFIG_KEYPAD == SANSA_M200_PAD |
115 | CONFIG_KEYPAD == SANSA_CONNECT_PAD | ||
116 | #define QUIT BUTTON_POWER | 115 | #define QUIT BUTTON_POWER |
117 | #define LEFT BUTTON_LEFT | 116 | #define LEFT BUTTON_LEFT |
118 | #define RIGHT BUTTON_RIGHT | 117 | #define RIGHT BUTTON_RIGHT |
@@ -122,6 +121,18 @@ CONFIG_KEYPAD == SANSA_CONNECT_PAD | |||
122 | #define UP BUTTON_UP | 121 | #define UP BUTTON_UP |
123 | #define DOWN BUTTON_DOWN | 122 | #define DOWN BUTTON_DOWN |
124 | 123 | ||
124 | #elif CONFIG_KEYPAD == SANSA_CONNECT_PAD | ||
125 | #define QUIT BUTTON_POWER | ||
126 | #define LEFT BUTTON_LEFT | ||
127 | #define RIGHT BUTTON_RIGHT | ||
128 | #define SELECT BUTTON_SELECT | ||
129 | #define UP BUTTON_UP | ||
130 | #define DOWN BUTTON_DOWN | ||
131 | |||
132 | #define SCROLL_FWD(x) ((x) & BUTTON_SCROLL_FWD) | ||
133 | #define SCROLL_BACK(x) ((x) & BUTTON_SCROLL_BACK) | ||
134 | |||
135 | |||
125 | #elif CONFIG_KEYPAD == IRIVER_H10_PAD | 136 | #elif CONFIG_KEYPAD == IRIVER_H10_PAD |
126 | #define QUIT BUTTON_POWER | 137 | #define QUIT BUTTON_POWER |
127 | #define LEFT BUTTON_LEFT | 138 | #define LEFT BUTTON_LEFT |
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c index f5d07a8354..79f3212467 100644 --- a/apps/plugins/doom/i_video.c +++ b/apps/plugins/doom/i_video.c | |||
@@ -453,6 +453,9 @@ void I_ShutdownGraphics(void) | |||
453 | #define DOOMBUTTON_MAP BUTTON_BOTTOMRIGHT | 453 | #define DOOMBUTTON_MAP BUTTON_BOTTOMRIGHT |
454 | 454 | ||
455 | #elif CONFIG_KEYPAD == SANSA_CONNECT_PAD | 455 | #elif CONFIG_KEYPAD == SANSA_CONNECT_PAD |
456 | #define DOOMBUTTON_SCROLLWHEEL | ||
457 | #define DOOMBUTTON_SCROLLWHEEL_CC BUTTON_SCROLL_BACK | ||
458 | #define DOOMBUTTON_SCROLLWHEEL_CW BUTTON_SCROLL_FWD | ||
456 | #define DOOMBUTTON_UP BUTTON_UP | 459 | #define DOOMBUTTON_UP BUTTON_UP |
457 | #define DOOMBUTTON_DOWN BUTTON_DOWN | 460 | #define DOOMBUTTON_DOWN BUTTON_DOWN |
458 | #define DOOMBUTTON_LEFT BUTTON_LEFT | 461 | #define DOOMBUTTON_LEFT BUTTON_LEFT |
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c index 8203fad612..1099672c4c 100644 --- a/apps/plugins/spacerocks.c +++ b/apps/plugins/spacerocks.c | |||
@@ -259,8 +259,8 @@ | |||
259 | #define AST_QUIT BUTTON_POWER | 259 | #define AST_QUIT BUTTON_POWER |
260 | #define AST_THRUST BUTTON_UP | 260 | #define AST_THRUST BUTTON_UP |
261 | #define AST_HYPERSPACE BUTTON_DOWN | 261 | #define AST_HYPERSPACE BUTTON_DOWN |
262 | #define AST_LEFT BUTTON_LEFT | 262 | #define AST_LEFT BUTTON_SCROLL_BACK |
263 | #define AST_RIGHT BUTTON_RIGHT | 263 | #define AST_RIGHT BUTTON_SCROLL_FWD |
264 | #define AST_FIRE BUTTON_SELECT | 264 | #define AST_FIRE BUTTON_SELECT |
265 | 265 | ||
266 | #elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) | 266 | #elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) |