summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-05-23 17:30:58 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-07-13 22:01:33 +0100
commit4c60bc9e681865fcfc149775a1ed7ccd2613d5bf (patch)
tree99f8d91af2c171cf3843f0c14d41a20d9dc29c4f /apps/plugins/lib
parent3abb7c5dd5be2ec6744bfc0a80967b20f1b59e30 (diff)
downloadrockbox-4c60bc9e681865fcfc149775a1ed7ccd2613d5bf.tar.gz
rockbox-4c60bc9e681865fcfc149775a1ed7ccd2613d5bf.zip
New port: Shanling Q1 native
- Audio playback works - Touchscreen and buttons work - Bootloader works and is capable of dual boot - Plugins are working - Cabbiev2 theme has been ported - Stable for general usage Thanks to Marc Aarts for porting Cabbiev2 and plugin bitmaps. There's a few minor known issues: - Bootloader must be installed manually using 'usbboot' as there is no support in jztool yet. - Keymaps may be lacking, need further testing and feedback. - Some plugins may not be fully adapted to the screen size and could benefit from further tweaking. - LCD shows abnormal effects under some circumstances: for example, after viewing a mostly black screen an afterimage appears briefly when going back to a brightly-lit screen. Sudden power-off without proper shutdown of the backlight causes a "dissolving" effect. - CW2015 battery reporting driver is buggy, and disabled for now. Battery reporting is currently voltage-based using the AXP192. Change-Id: I635e83f02a880192c5a82cb0861ad3a61c137c3a
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/keymaps.h12
-rw-r--r--apps/plugins/lib/pluginlib_actions.c2
2 files changed, 13 insertions, 1 deletions
diff --git a/apps/plugins/lib/keymaps.h b/apps/plugins/lib/keymaps.h
index b660d4d85e..2cbca9e5ad 100644
--- a/apps/plugins/lib/keymaps.h
+++ b/apps/plugins/lib/keymaps.h
@@ -255,6 +255,15 @@
255#define BTN_FIRE BUTTON_SELECT 255#define BTN_FIRE BUTTON_SELECT
256#define BTN_PAUSE BUTTON_POWER 256#define BTN_PAUSE BUTTON_POWER
257 257
258#elif CONFIG_KEYPAD == SHANLING_Q1_PAD
259#define BTN_FIRE BUTTON_CENTER
260#define BTN_PAUSE BUTTON_POWER
261#define BTN_HAVE_DIAGONAL
262#define BTN_DOWN_LEFT BUTTON_BOTTOMLEFT
263#define BTN_DOWN_RIGHT BUTTON_BOTTOMRIGHT
264#define BTN_UP_LEFT BUTTON_TOPLEFT
265#define BTN_UP_RIGHT BUTTON_TOPRIGHT
266
258#else 267#else
259#error Unsupported keypad 268#error Unsupported keypad
260#endif 269#endif
@@ -272,7 +281,8 @@
272#elif (CONFIG_KEYPAD != COWON_D2_PAD) && \ 281#elif (CONFIG_KEYPAD != COWON_D2_PAD) && \
273 (CONFIG_KEYPAD != DX50_PAD) && \ 282 (CONFIG_KEYPAD != DX50_PAD) && \
274 (CONFIG_KEYPAD != ONDAVX777_PAD) && \ 283 (CONFIG_KEYPAD != ONDAVX777_PAD) && \
275 (CONFIG_KEYPAD != CREATIVE_ZENXFI2_PAD) 284 (CONFIG_KEYPAD != CREATIVE_ZENXFI2_PAD) && \
285 (CONFIG_KEYPAD != SHANLING_Q1_PAD)
276#define BTN_FIRE BUTTON_BOTTOMLEFT 286#define BTN_FIRE BUTTON_BOTTOMLEFT
277#define BTN_PAUSE BUTTON_TOPLEFT 287#define BTN_PAUSE BUTTON_TOPLEFT
278#endif 288#endif
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c
index 028472d9a8..4115177eaa 100644
--- a/apps/plugins/lib/pluginlib_actions.c
+++ b/apps/plugins/lib/pluginlib_actions.c
@@ -499,6 +499,8 @@ const struct button_mapping pla_main_ctx[] =
499 {PLA_SELECT, BUTTON_SELECT, BUTTON_NONE}, 499 {PLA_SELECT, BUTTON_SELECT, BUTTON_NONE},
500 {PLA_SELECT_REL, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT}, 500 {PLA_SELECT_REL, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT},
501 {PLA_SELECT_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE}, 501 {PLA_SELECT_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
502#elif (CONFIG_KEYPAD == SHANLING_Q1_PAD)
503 {PLA_EXIT, BUTTON_POWER, BUTTON_NONE},
502#else 504#else
503# ifndef HAVE_TOUCHSCREEN 505# ifndef HAVE_TOUCHSCREEN
504# error pluginlib_actions: No actions defined 506# error pluginlib_actions: No actions defined