diff options
Diffstat (limited to 'apps/plugins/sudoku/sudoku.h')
-rw-r--r-- | apps/plugins/sudoku/sudoku.h | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/apps/plugins/sudoku/sudoku.h b/apps/plugins/sudoku/sudoku.h index 3fc8dbe0e0..2cd9198af9 100644 --- a/apps/plugins/sudoku/sudoku.h +++ b/apps/plugins/sudoku/sudoku.h | |||
@@ -172,18 +172,39 @@ | |||
172 | 172 | ||
173 | #elif (CONFIG_KEYPAD == COWOND2_PAD) | 173 | #elif (CONFIG_KEYPAD == COWOND2_PAD) |
174 | #define SUDOKU_BUTTON_QUIT BUTTON_POWER | 174 | #define SUDOKU_BUTTON_QUIT BUTTON_POWER |
175 | #define SUDOKU_BUTTON_UP BUTTON_UP | ||
176 | #define SUDOKU_BUTTON_DOWN BUTTON_DOWN | ||
177 | #define SUDOKU_BUTTON_LEFT BUTTON_LEFT | ||
178 | #define SUDOKU_BUTTON_RIGHT BUTTON_RIGHT | ||
179 | #define SUDOKU_BUTTON_TOGGLE BUTTON_PLUS | ||
180 | #define SUDOKU_BUTTON_MENU BUTTON_MENU | 175 | #define SUDOKU_BUTTON_MENU BUTTON_MENU |
181 | #define SUDOKU_BUTTON_POSSIBLE BUTTON_MINUS | ||
182 | 176 | ||
183 | #else | 177 | #else |
184 | #error No keymap defined! | 178 | #error No keymap defined! |
185 | #endif | 179 | #endif |
186 | 180 | ||
181 | #ifdef HAVE_TOUCHPAD | ||
182 | #ifndef SUDOKU_BUTTON_QUIT | ||
183 | #define SUDOKU_BUTTON_QUIT BUTTON_TOPLEFT | ||
184 | #endif | ||
185 | #ifndef SUDOKU_BUTTON_UP | ||
186 | #define SUDOKU_BUTTON_UP BUTTON_TOPMIDDLE | ||
187 | #endif | ||
188 | #ifndef SUDOKU_BUTTON_DOWN | ||
189 | #define SUDOKU_BUTTON_DOWN BUTTON_BOTTOMMIDDLE | ||
190 | #endif | ||
191 | #ifndef SUDOKU_BUTTON_LEFT | ||
192 | #define SUDOKU_BUTTON_LEFT BUTTON_MIDLEFT | ||
193 | #endif | ||
194 | #ifndef SUDOKU_BUTTON_RIGHT | ||
195 | #define SUDOKU_BUTTON_RIGHT BUTTON_MIDRIGHT | ||
196 | #endif | ||
197 | #ifndef SUDOKU_BUTTON_TOGGLE | ||
198 | #define SUDOKU_BUTTON_TOGGLE BUTTON_CENTER | ||
199 | #endif | ||
200 | #ifndef SUDOKU_BUTTON_MENU | ||
201 | #define SUDOKU_BUTTON_MENU BUTTON_TOPRIGHT | ||
202 | #endif | ||
203 | #ifndef SUDOKU_BUTTON_POSSIBLE | ||
204 | #define SUDOKU_BUTTON_POSSIBLE BUTTON_BOTTOMLEFT | ||
205 | #endif | ||
206 | #endif | ||
207 | |||
187 | struct sudoku_state_t { | 208 | struct sudoku_state_t { |
188 | char filename[MAX_PATH]; /* Filename */ | 209 | char filename[MAX_PATH]; /* Filename */ |
189 | char startboard[9][9]; /* The initial state of the game */ | 210 | char startboard[9][9]; /* The initial state of the game */ |