From 44acbc66291da6a8ade8571b73a10e34341a622b Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 20 Nov 2021 19:05:16 +0000 Subject: 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 --- firmware/target/mips/ingenic_x1000/debug-x1000.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/target/mips/ingenic_x1000/debug-x1000.c') 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) #ifdef FIIO_M3K extern bool dbg_fiiom3k_touchpad(void); #endif +#ifdef SHANLING_Q1 +extern bool dbg_shanlingq1_touchscreen(void); +#endif #ifdef HAVE_AXP_PMU extern bool axp_debug_menu(void); #endif @@ -170,6 +173,9 @@ static const struct { #ifdef FIIO_M3K {"Touchpad", &dbg_fiiom3k_touchpad}, #endif +#ifdef SHANLING_Q1 + {"Touchscreen", &dbg_shanlingq1_touchscreen}, +#endif #ifdef HAVE_AXP_PMU {"Power stats", &axp_debug_menu}, #endif -- cgit v1.2.3