diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-04-27 15:30:19 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-04-27 15:30:19 +0000 |
commit | 297e0504dad929f8990a654c4bc7a3e891ff41cb (patch) | |
tree | 7def4b8fba3c184f82415e840e9c32780848970b /apps/plugins/brickmania.c | |
parent | 6b9b508aab29a406015e93c4808d87591173a083 (diff) | |
download | rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.tar.gz rockbox-297e0504dad929f8990a654c4bc7a3e891ff41cb.zip |
FS#8708: D2/m:robe500 touchscreen keymaps by Andreas Mueller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17261 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r-- | apps/plugins/brickmania.c | 26 |
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) |