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/chessbox | |
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/chessbox')
-rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.h | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h index 567dcb1acb..e9b66787ee 100644 --- a/apps/plugins/chessbox/chessbox_pgn.h +++ b/apps/plugins/chessbox/chessbox_pgn.h | |||
@@ -525,21 +525,7 @@ | |||
525 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) | 525 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) |
526 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) | 526 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) |
527 | 527 | ||
528 | #elif CONFIG_KEYPAD == XDUOO_X3II_PAD | 528 | #elif CONFIG_KEYPAD == XDUOO_X3II_PAD || CONFIG_KEYPAD == XDUOO_X20_PAD |
529 | #define CB_SELECT BUTTON_PLAY | ||
530 | #define CB_UP BUTTON_HOME | ||
531 | #define CB_DOWN BUTTON_OPTION | ||
532 | #define CB_LEFT BUTTON_PREV | ||
533 | #define CB_RIGHT BUTTON_NEXT | ||
534 | #define CB_PLAY BUTTON_VOL_UP | ||
535 | #define CB_LEVEL BUTTON_VOL_DOWN | ||
536 | #define CB_MENU BUTTON_POWER | ||
537 | #define CB_SCROLL_UP (BUTTON_HOME|BUTTON_REPEAT) | ||
538 | #define CB_SCROLL_DOWN (BUTTON_OPTION|BUTTON_REPEAT) | ||
539 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) | ||
540 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) | ||
541 | |||
542 | #elif CONFIG_KEYPAD == XDUOO_X20_PAD | ||
543 | #define CB_SELECT BUTTON_PLAY | 529 | #define CB_SELECT BUTTON_PLAY |
544 | #define CB_UP BUTTON_HOME | 530 | #define CB_UP BUTTON_HOME |
545 | #define CB_DOWN BUTTON_OPTION | 531 | #define CB_DOWN BUTTON_OPTION |
@@ -567,7 +553,7 @@ | |||
567 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) | 553 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) |
568 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) | 554 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) |
569 | 555 | ||
570 | #elif CONFIG_KEYPAD == IHIFI_770_PAD | 556 | #elif CONFIG_KEYPAD == IHIFI_770_PAD || CONFIG_KEYPAD == IHIFI_800_PAD |
571 | #define CB_SELECT BUTTON_PLAY | 557 | #define CB_SELECT BUTTON_PLAY |
572 | #define CB_UP BUTTON_PREV | 558 | #define CB_UP BUTTON_PREV |
573 | #define CB_DOWN BUTTON_NEXT | 559 | #define CB_DOWN BUTTON_NEXT |
@@ -581,19 +567,19 @@ | |||
581 | #define CB_SCROLL_LEFT (BUTTON_HOME|BUTTON_REPEAT) | 567 | #define CB_SCROLL_LEFT (BUTTON_HOME|BUTTON_REPEAT) |
582 | #define CB_SCROLL_RIGHT (BUTTON_VOL_UP|BUTTON_REPEAT) | 568 | #define CB_SCROLL_RIGHT (BUTTON_VOL_UP|BUTTON_REPEAT) |
583 | 569 | ||
584 | #elif CONFIG_KEYPAD == IHIFI_800_PAD | 570 | #elif CONFIG_KEYPAD == EROSQ_PAD |
585 | #define CB_SELECT BUTTON_PLAY | 571 | #define CB_SELECT BUTTON_PLAY |
586 | #define CB_UP BUTTON_PREV | 572 | #define CB_UP BUTTON_PREV |
587 | #define CB_DOWN BUTTON_NEXT | 573 | #define CB_DOWN BUTTON_NEXT |
588 | #define CB_LEFT BUTTON_HOME | 574 | #define CB_LEFT BUTTON_SCROLL_BACK |
589 | #define CB_RIGHT BUTTON_VOL_DOWN | 575 | #define CB_RIGHT BUTTON_SCROLL_FWD |
590 | #define CB_PLAY BUTTON_VOL_UP | 576 | #define CB_PLAY BUTTON_VOL_DOWN |
591 | #define CB_LEVEL (BUTTON_PLAY|BUTTON_REPEAT) | 577 | #define CB_MENU BUTTON_MENU |
592 | #define CB_MENU BUTTON_POWER | 578 | #define CB_LEVEL BUTTON_VOL_UP |
593 | #define CB_SCROLL_UP (BUTTON_PREV|BUTTON_REPEAT) | 579 | #define CB_SCROLL_UP (BUTTON_PREV|BUTTON_REPEAT) |
594 | #define CB_SCROLL_DOWN (BUTTON_NEXT|BUTTON_REPEAT) | 580 | #define CB_SCROLL_DOWN (BUTTON_NEXT|BUTTON_REPEAT) |
595 | #define CB_SCROLL_LEFT (BUTTON_HOME|BUTTON_REPEAT) | 581 | #define CB_SCROLL_LEFT (BUTTON_SCROLL_BACK|BUTTON_REPEAT) |
596 | #define CB_SCROLL_RIGHT (BUTTON_VOL_UP|BUTTON_REPEAT) | 582 | #define CB_SCROLL_RIGHT (BUTTON_SCROLL_FWD|BUTTON_REPEAT) |
597 | 583 | ||
598 | #else | 584 | #else |
599 | #error No keymap defined! | 585 | #error No keymap defined! |