summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c26
1 files changed, 19 insertions, 7 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index bae8dededf..f0059ba633 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -165,18 +165,30 @@ PLUGIN_HEADER
165#define RC_QUIT BUTTON_REC 165#define RC_QUIT BUTTON_REC
166 166
167#elif CONFIG_KEYPAD == COWOND2_PAD 167#elif CONFIG_KEYPAD == COWOND2_PAD
168 168#define QUIT BUTTON_POWER
169#define QUIT BUTTON_POWER
170#define LEFT BUTTON_LEFT
171#define RIGHT BUTTON_RIGHT
172#define SELECT BUTTON_SELECT
173#define UP BUTTON_UP
174#define DOWN BUTTON_DOWN
175 169
176#else 170#else
177#error No keymap defined! 171#error No keymap defined!
178#endif 172#endif
179 173
174#ifdef HAVE_TOUCHPAD
175#ifndef LEFT
176#define LEFT BUTTON_MIDLEFT
177#endif
178#ifndef RIGHT
179#define RIGHT BUTTON_MIDRIGHT
180#endif
181#ifndef SELECT
182#define SELECT BUTTON_CENTER
183#endif
184#ifndef UP
185#define UP BUTTON_TOPMIDDLE
186#endif
187#ifndef DOWN
188#define DOWN BUTTON_BOTTOMMIDDLE
189#endif
190#endif
191
180#ifndef SCROLL_FWD /* targets without scroll wheel*/ 192#ifndef SCROLL_FWD /* targets without scroll wheel*/
181#define SCROLL_FWD(x) (0) 193#define SCROLL_FWD(x) (0)
182#define SCROLL_BACK(x) (0) 194#define SCROLL_BACK(x) (0)