diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-08 09:47:40 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-11 16:37:17 -0400 |
commit | 2a471e288c16b91a7186a60b3fb84dd55a494c7a (patch) | |
tree | 3e746212c5fa69b59f61d19b6e29d11aa8a5e31b /apps/plugins/reversi | |
parent | 5efaa9ef8073bb216e3dcdbb4476f2fa7c672b76 (diff) | |
download | rockbox-2a471e288c16b91a7186a60b3fb84dd55a494c7a.tar.gz rockbox-2a471e288c16b91a7186a60b3fb84dd55a494c7a.zip |
New port: AIGO EROS Q / EROS K
The Q and K have a slightly different case, but the hardware under the
shell is completely identical.
These models are rebadged versions:
* Hifiwalker H2 (== Q)
* AGPTek H3 (== K)
* Surfans F20 (== K)
Other notes:
* Significant improvements in the shared Hiby-platform launcher/loader
* SD card can theoretically be hot-swapped now
* Support external USB mass storage!
* Some consolidation of Hiby-platform targets
* Some consolidation of plugin keymaps
Todo/known issues:
* Keymaps need to be gone over properly
* Convert to HAVE_SCROLLWHEEL?
Change-Id: I5a8a4f22c38a5b69392ca7c0a8ad8c4e07d9523c
Diffstat (limited to 'apps/plugins/reversi')
-rw-r--r-- | apps/plugins/reversi/reversi-gui.h | 53 |
1 files changed, 20 insertions, 33 deletions
diff --git a/apps/plugins/reversi/reversi-gui.h b/apps/plugins/reversi/reversi-gui.h index 1547e52573..0a2348a28d 100644 --- a/apps/plugins/reversi/reversi-gui.h +++ b/apps/plugins/reversi/reversi-gui.h | |||
@@ -45,9 +45,9 @@ | |||
45 | #define REVERSI_BUTTON_LEFT (BUTTON_LEFT | BUTTON_SCROLL_BACK) | 45 | #define REVERSI_BUTTON_LEFT (BUTTON_LEFT | BUTTON_SCROLL_BACK) |
46 | #define REVERSI_BUTTON_RIGHT (BUTTON_RIGHT | BUTTON_SCROLL_FWD) | 46 | #define REVERSI_BUTTON_RIGHT (BUTTON_RIGHT | BUTTON_SCROLL_FWD) |
47 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT | 47 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT |
48 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS | 48 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS |
49 | #define REVERSI_BUTTON_MENU BUTTON_SELECT | 49 | #define REVERSI_BUTTON_MENU BUTTON_SELECT |
50 | #define REVERSI_BUTTON_MENU_LONGPRESS | 50 | #define REVERSI_BUTTON_MENU_LONGPRESS |
51 | 51 | ||
52 | #elif (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) | 52 | #elif (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) |
53 | #define REVERSI_BUTTON_QUIT BUTTON_POWER | 53 | #define REVERSI_BUTTON_QUIT BUTTON_POWER |
@@ -96,9 +96,9 @@ | |||
96 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT | 96 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT |
97 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT | 97 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT |
98 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT | 98 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT |
99 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS | 99 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS |
100 | #define REVERSI_BUTTON_MENU BUTTON_SELECT | 100 | #define REVERSI_BUTTON_MENU BUTTON_SELECT |
101 | #define REVERSI_BUTTON_MENU_LONGPRESS | 101 | #define REVERSI_BUTTON_MENU_LONGPRESS |
102 | 102 | ||
103 | #elif (CONFIG_KEYPAD == SANSA_FUZE_PAD) | 103 | #elif (CONFIG_KEYPAD == SANSA_FUZE_PAD) |
104 | #define REVERSI_BUTTON_QUIT (BUTTON_HOME|BUTTON_REPEAT) | 104 | #define REVERSI_BUTTON_QUIT (BUTTON_HOME|BUTTON_REPEAT) |
@@ -107,9 +107,9 @@ | |||
107 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT | 107 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT |
108 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT | 108 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT |
109 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT | 109 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT |
110 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS | 110 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS |
111 | #define REVERSI_BUTTON_MENU BUTTON_SELECT | 111 | #define REVERSI_BUTTON_MENU BUTTON_SELECT |
112 | #define REVERSI_BUTTON_MENU_LONGPRESS | 112 | #define REVERSI_BUTTON_MENU_LONGPRESS |
113 | 113 | ||
114 | #elif CONFIG_KEYPAD == MROBE500_PAD | 114 | #elif CONFIG_KEYPAD == MROBE500_PAD |
115 | #define REVERSI_BUTTON_QUIT BUTTON_POWER | 115 | #define REVERSI_BUTTON_QUIT BUTTON_POWER |
@@ -233,17 +233,17 @@ | |||
233 | #define REVERSI_BUTTON_UP BUTTON_REW | 233 | #define REVERSI_BUTTON_UP BUTTON_REW |
234 | #define REVERSI_BUTTON_DOWN BUTTON_FF | 234 | #define REVERSI_BUTTON_DOWN BUTTON_FF |
235 | #define REVERSI_BUTTON_LEFT BUTTON_VOL_DOWN | 235 | #define REVERSI_BUTTON_LEFT BUTTON_VOL_DOWN |
236 | #define REVERSI_BUTTON_RIGHT BUTTON_VOL_UP | 236 | #define REVERSI_BUTTON_RIGHT BUTTON_VOL_UP |
237 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_FUNC | 237 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_FUNC |
238 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS | 238 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS |
239 | #define REVERSI_BUTTON_MENU BUTTON_FUNC | 239 | #define REVERSI_BUTTON_MENU BUTTON_FUNC |
240 | #define REVERSI_BUTTON_MENU_LONGPRESS | 240 | #define REVERSI_BUTTON_MENU_LONGPRESS |
241 | 241 | ||
242 | #elif CONFIG_KEYPAD == MPIO_HD300_PAD | 242 | #elif CONFIG_KEYPAD == MPIO_HD300_PAD |
243 | #define REVERSI_BUTTON_UP BUTTON_UP | 243 | #define REVERSI_BUTTON_UP BUTTON_UP |
244 | #define REVERSI_BUTTON_DOWN BUTTON_DOWN | 244 | #define REVERSI_BUTTON_DOWN BUTTON_DOWN |
245 | #define REVERSI_BUTTON_LEFT BUTTON_REW | 245 | #define REVERSI_BUTTON_LEFT BUTTON_REW |
246 | #define REVERSI_BUTTON_RIGHT BUTTON_FF | 246 | #define REVERSI_BUTTON_RIGHT BUTTON_FF |
247 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_ENTER | 247 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_ENTER |
248 | #define REVERSI_BUTTON_MENU BUTTON_MENU | 248 | #define REVERSI_BUTTON_MENU BUTTON_MENU |
249 | 249 | ||
@@ -251,7 +251,7 @@ | |||
251 | #define REVERSI_BUTTON_UP BUTTON_UP | 251 | #define REVERSI_BUTTON_UP BUTTON_UP |
252 | #define REVERSI_BUTTON_DOWN BUTTON_DOWN | 252 | #define REVERSI_BUTTON_DOWN BUTTON_DOWN |
253 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT | 253 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT |
254 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT | 254 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT |
255 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAYPAUSE | 255 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAYPAUSE |
256 | #define REVERSI_BUTTON_MENU BUTTON_BACK | 256 | #define REVERSI_BUTTON_MENU BUTTON_BACK |
257 | 257 | ||
@@ -269,7 +269,7 @@ | |||
269 | #define REVERSI_BUTTON_UP BUTTON_UP | 269 | #define REVERSI_BUTTON_UP BUTTON_UP |
270 | #define REVERSI_BUTTON_DOWN BUTTON_DOWN | 270 | #define REVERSI_BUTTON_DOWN BUTTON_DOWN |
271 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT | 271 | #define REVERSI_BUTTON_LEFT BUTTON_LEFT |
272 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT | 272 | #define REVERSI_BUTTON_RIGHT BUTTON_RIGHT |
273 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT | 273 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT |
274 | #define REVERSI_BUTTON_MENU BUTTON_POWER | 274 | #define REVERSI_BUTTON_MENU BUTTON_POWER |
275 | 275 | ||
@@ -319,18 +319,7 @@ | |||
319 | #define REVERSI_BUTTON_MENU BUTTON_PLAY | 319 | #define REVERSI_BUTTON_MENU BUTTON_PLAY |
320 | #define REVERSI_BUTTON_MENU_LONGPRESS | 320 | #define REVERSI_BUTTON_MENU_LONGPRESS |
321 | 321 | ||
322 | #elif CONFIG_KEYPAD == XDUOO_X3II_PAD | 322 | #elif CONFIG_KEYPAD == XDUOO_X3II_PAD || CONFIG_KEYPAD == XDUOO_X20_PAD |
323 | #define REVERSI_BUTTON_QUIT BUTTON_POWER | ||
324 | #define REVERSI_BUTTON_UP BUTTON_HOME | ||
325 | #define REVERSI_BUTTON_DOWN BUTTON_OPTION | ||
326 | #define REVERSI_BUTTON_LEFT BUTTON_PREV | ||
327 | #define REVERSI_BUTTON_RIGHT BUTTON_NEXT | ||
328 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAY | ||
329 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS | ||
330 | #define REVERSI_BUTTON_MENU BUTTON_PLAY | ||
331 | #define REVERSI_BUTTON_MENU_LONGPRESS | ||
332 | |||
333 | #elif CONFIG_KEYPAD == XDUOO_X20_PAD | ||
334 | #define REVERSI_BUTTON_QUIT BUTTON_POWER | 323 | #define REVERSI_BUTTON_QUIT BUTTON_POWER |
335 | #define REVERSI_BUTTON_UP BUTTON_HOME | 324 | #define REVERSI_BUTTON_UP BUTTON_HOME |
336 | #define REVERSI_BUTTON_DOWN BUTTON_OPTION | 325 | #define REVERSI_BUTTON_DOWN BUTTON_OPTION |
@@ -352,27 +341,25 @@ | |||
352 | #define REVERSI_BUTTON_MENU BUTTON_PLAY | 341 | #define REVERSI_BUTTON_MENU BUTTON_PLAY |
353 | #define REVERSI_BUTTON_MENU_LONGPRESS | 342 | #define REVERSI_BUTTON_MENU_LONGPRESS |
354 | 343 | ||
355 | #elif CONFIG_KEYPAD == IHIFI_770_PAD | 344 | #elif CONFIG_KEYPAD == IHIFI_770_PAD || CONFIG_KEYPAD == IHIFI_800_PAD |
356 | #define REVERSI_BUTTON_QUIT BUTTON_POWER | 345 | #define REVERSI_BUTTON_QUIT BUTTON_POWER |
357 | #define REVERSI_BUTTON_UP BUTTON_PREV | 346 | #define REVERSI_BUTTON_UP BUTTON_PREV |
358 | #define REVERSI_BUTTON_DOWN BUTTON_NEXT | 347 | #define REVERSI_BUTTON_DOWN BUTTON_NEXT |
359 | #define REVERSI_BUTTON_LEFT BUTTON_PREV | 348 | #define REVERSI_BUTTON_LEFT BUTTON_PREV |
360 | #define REVERSI_BUTTON_RIGHT BUTTON_VOL_DOWN | 349 | #define REVERSI_BUTTON_RIGHT BUTTON_VOL_DOWN |
361 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAY | 350 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAY |
362 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS | 351 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS |
363 | #define REVERSI_BUTTON_MENU BUTTON_PLAY | 352 | #define REVERSI_BUTTON_MENU BUTTON_PLAY |
364 | #define REVERSI_BUTTON_MENU_LONGPRESS | 353 | #define REVERSI_BUTTON_MENU_LONGPRESS |
365 | 354 | ||
366 | #elif CONFIG_KEYPAD == IHIFI_800_PAD | 355 | #elif CONFIG_KEYPAD == EROSQ_PAD |
367 | #define REVERSI_BUTTON_QUIT BUTTON_POWER | 356 | #define REVERSI_BUTTON_QUIT BUTTON_POWER |
368 | #define REVERSI_BUTTON_UP BUTTON_PREV | 357 | #define REVERSI_BUTTON_UP BUTTON_PREV |
369 | #define REVERSI_BUTTON_DOWN BUTTON_NEXT | 358 | #define REVERSI_BUTTON_DOWN BUTTON_NEXT |
370 | #define REVERSI_BUTTON_LEFT BUTTON_PREV | 359 | #define REVERSI_BUTTON_LEFT BUTTON_SCROLL_BACK |
371 | #define REVERSI_BUTTON_RIGHT BUTTON_VOL_DOWN | 360 | #define REVERSI_BUTTON_RIGHT BUTTON_SCROLL_FWD |
372 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAY | 361 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAY |
373 | #define REVERSI_BUTTON_MAKE_MOVE_SHORTPRESS | 362 | #define REVERSI_BUTTON_MENU BUTTON_MENU |
374 | #define REVERSI_BUTTON_MENU BUTTON_PLAY | ||
375 | #define REVERSI_BUTTON_MENU_LONGPRESS | ||
376 | 363 | ||
377 | #else | 364 | #else |
378 | #error No keymap defined! | 365 | #error No keymap defined! |