diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2018-11-05 13:01:55 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-04-06 18:15:41 +0200 |
commit | 180cef835bf40d0081895773aaa637ac926bb0ac (patch) | |
tree | 48c380d76c0ea40931cb5e863b40fc5dfa1ecba4 /apps/plugins/chessbox | |
parent | ced3a20aacf26642ccc3ffd136f64247c67e5769 (diff) | |
download | rockbox-180cef835bf40d0081895773aaa637ac926bb0ac.tar.gz rockbox-180cef835bf40d0081895773aaa637ac926bb0ac.zip |
xDuoo X3II and X20 port
Provided by Roman Stolyarov
Integration, Refactoring, and Upstreaming by Solomon Peachy
X3II confirmed working by forum tester, X20 is nearly identical.
This includes bootloader, main firmware, and the flash image patcher.
Eventual Todo:
* Further refactor AGPTek Rocker & xduoo hiby bootloaders
* Further refactor AGPTek Rocker & xduoo hosted platform code
Change-Id: I34a674051d368efcc75d1d18c725971fe46c3eee
Diffstat (limited to 'apps/plugins/chessbox')
-rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h index 3c4d5357a5..9d37953c6f 100644 --- a/apps/plugins/chessbox/chessbox_pgn.h +++ b/apps/plugins/chessbox/chessbox_pgn.h | |||
@@ -572,6 +572,34 @@ | |||
572 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) | 572 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) |
573 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) | 573 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) |
574 | 574 | ||
575 | #elif CONFIG_KEYPAD == XDUOO_X3II_PAD | ||
576 | #define CB_SELECT BUTTON_PLAY | ||
577 | #define CB_UP BUTTON_HOME | ||
578 | #define CB_DOWN BUTTON_OPTION | ||
579 | #define CB_LEFT BUTTON_PREV | ||
580 | #define CB_RIGHT BUTTON_NEXT | ||
581 | #define CB_PLAY BUTTON_VOL_UP | ||
582 | #define CB_LEVEL BUTTON_VOL_DOWN | ||
583 | #define CB_MENU BUTTON_POWER | ||
584 | #define CB_SCROLL_UP (BUTTON_HOME|BUTTON_REPEAT) | ||
585 | #define CB_SCROLL_DOWN (BUTTON_OPTION|BUTTON_REPEAT) | ||
586 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) | ||
587 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) | ||
588 | |||
589 | #elif CONFIG_KEYPAD == XDUOO_X20_PAD | ||
590 | #define CB_SELECT BUTTON_PLAY | ||
591 | #define CB_UP BUTTON_HOME | ||
592 | #define CB_DOWN BUTTON_OPTION | ||
593 | #define CB_LEFT BUTTON_PREV | ||
594 | #define CB_RIGHT BUTTON_NEXT | ||
595 | #define CB_PLAY BUTTON_VOL_UP | ||
596 | #define CB_LEVEL BUTTON_VOL_DOWN | ||
597 | #define CB_MENU BUTTON_POWER | ||
598 | #define CB_SCROLL_UP (BUTTON_HOME|BUTTON_REPEAT) | ||
599 | #define CB_SCROLL_DOWN (BUTTON_OPTION|BUTTON_REPEAT) | ||
600 | #define CB_SCROLL_LEFT (BUTTON_PREV|BUTTON_REPEAT) | ||
601 | #define CB_SCROLL_RIGHT (BUTTON_NEXT|BUTTON_REPEAT) | ||
602 | |||
575 | #elif CONFIG_KEYPAD == IHIFI_770_PAD | 603 | #elif CONFIG_KEYPAD == IHIFI_770_PAD |
576 | #define CB_SELECT BUTTON_PLAY | 604 | #define CB_SELECT BUTTON_PLAY |
577 | #define CB_UP BUTTON_PREV | 605 | #define CB_UP BUTTON_PREV |