summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/debug-x1000.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-20 19:05:16 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-11-24 18:49:03 -0500
commit44acbc66291da6a8ade8571b73a10e34341a622b (patch)
tree226f9d9f971756f481455da082443f700bcfc786 /firmware/target/mips/ingenic_x1000/debug-x1000.c
parentb39acee3abd199d80b84c68ebfa7301b7e7a957e (diff)
downloadrockbox-44acbc66291da6a8ade8571b73a10e34341a622b.tar.gz
rockbox-44acbc66291da6a8ade8571b73a10e34341a622b.zip
Shanling Q1: enable multi-touch reporting
The FT6x06 driver used for the Shanling Q1's touchscreen has been extended to report more than one touch point. It can also return the gesture detected by the controller, but this doesn't seem to report anything useful on the Q1. Multi-touch is only useful in 3x3 grid mode since the Rockbox button API cannot report more than one touch point. The FiiO M3K uses the same driver so it's been updated to the multi-touch API, but functionality is unchanged. Change-Id: I4de42f44808d6eb902e3da212d8f936b7a5042c7
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/debug-x1000.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/debug-x1000.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/debug-x1000.c b/firmware/target/mips/ingenic_x1000/debug-x1000.c
index 1965b0b74e..98b8f95fb5 100644
--- a/firmware/target/mips/ingenic_x1000/debug-x1000.c
+++ b/firmware/target/mips/ingenic_x1000/debug-x1000.c
@@ -149,6 +149,9 @@ static bool dbg_cpuidle(void)
149#ifdef FIIO_M3K 149#ifdef FIIO_M3K
150extern bool dbg_fiiom3k_touchpad(void); 150extern bool dbg_fiiom3k_touchpad(void);
151#endif 151#endif
152#ifdef SHANLING_Q1
153extern bool dbg_shanlingq1_touchscreen(void);
154#endif
152#ifdef HAVE_AXP_PMU 155#ifdef HAVE_AXP_PMU
153extern bool axp_debug_menu(void); 156extern bool axp_debug_menu(void);
154#endif 157#endif
@@ -170,6 +173,9 @@ static const struct {
170#ifdef FIIO_M3K 173#ifdef FIIO_M3K
171 {"Touchpad", &dbg_fiiom3k_touchpad}, 174 {"Touchpad", &dbg_fiiom3k_touchpad},
172#endif 175#endif
176#ifdef SHANLING_Q1
177 {"Touchscreen", &dbg_shanlingq1_touchscreen},
178#endif
173#ifdef HAVE_AXP_PMU 179#ifdef HAVE_AXP_PMU
174 {"Power stats", &axp_debug_menu}, 180 {"Power stats", &axp_debug_menu},
175#endif 181#endif