diff options
Diffstat (limited to 'apps/plugins/minesweeper.c')
-rw-r--r-- | apps/plugins/minesweeper.c | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c index 5066844347..e4b8c939b4 100644 --- a/apps/plugins/minesweeper.c +++ b/apps/plugins/minesweeper.c | |||
@@ -184,19 +184,39 @@ enum minesweeper_status { | |||
184 | # define MINESWP_INFO BUTTON_RC_MENU | 184 | # define MINESWP_INFO BUTTON_RC_MENU |
185 | 185 | ||
186 | #elif (CONFIG_KEYPAD == COWOND2_PAD) | 186 | #elif (CONFIG_KEYPAD == COWOND2_PAD) |
187 | # define MINESWP_LEFT BUTTON_LEFT | ||
188 | # define MINESWP_RIGHT BUTTON_RIGHT | ||
189 | # define MINESWP_UP BUTTON_UP | ||
190 | # define MINESWP_DOWN BUTTON_DOWN | ||
191 | # define MINESWP_QUIT BUTTON_POWER | 187 | # define MINESWP_QUIT BUTTON_POWER |
192 | # define MINESWP_TOGGLE BUTTON_SELECT | ||
193 | # define MINESWP_DISCOVER BUTTON_MENU | ||
194 | # define MINESWP_INFO (BUTTON_MENU | BUTTON_SELECT) | ||
195 | 188 | ||
196 | #else | 189 | #else |
197 | #error No keymap defined! | 190 | #error No keymap defined! |
198 | #endif | 191 | #endif |
199 | 192 | ||
193 | #ifdef HAVE_TOUCHPAD | ||
194 | #ifndef MINESWP_QUIT | ||
195 | # define MINESWP_QUIT BUTTON_TOPLEFT | ||
196 | #endif | ||
197 | #ifndef MINESWP_LEFT | ||
198 | # define MINESWP_LEFT BUTTON_MIDLEFT | ||
199 | #endif | ||
200 | #ifndef MINESWP_RIGHT | ||
201 | # define MINESWP_RIGHT BUTTON_MIDRIGHT | ||
202 | #endif | ||
203 | #ifndef MINESWP_UP | ||
204 | # define MINESWP_UP BUTTON_TOPMIDDLE | ||
205 | #endif | ||
206 | #ifndef MINESWP_DOWN | ||
207 | # define MINESWP_DOWN BUTTON_BOTTOMMIDDLE | ||
208 | #endif | ||
209 | #ifndef MINESWP_TOGGLE | ||
210 | # define MINESWP_TOGGLE BUTTON_CENTER | ||
211 | #endif | ||
212 | #ifndef MINESWP_DISCOVER | ||
213 | # define MINESWP_DISCOVER BUTTON_BOTTOMLEFT | ||
214 | #endif | ||
215 | #ifndef MINESWP_INFO | ||
216 | # define MINESWP_INFO BUTTON_BOTTOMRIGHT | ||
217 | #endif | ||
218 | #endif | ||
219 | |||
200 | /* here is a global api struct pointer. while not strictly necessary, | 220 | /* here is a global api struct pointer. while not strictly necessary, |
201 | * it's nice not to have to pass the api pointer in all function calls | 221 | * it's nice not to have to pass the api pointer in all function calls |
202 | * in the plugin | 222 | * in the plugin |