summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-12-01 18:25:42 +0000
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-08 11:21:54 +0200
commit8146b40e73bb999001787fbf414c96acf5dce2a8 (patch)
treee3a1b2f951fd439c71d82e387d04df10d926b4e9 /firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
parent847106cdb20a0297dc9a10f212f0e3c8e6f3d58c (diff)
downloadrockbox-8146b40e73bb999001787fbf414c96acf5dce2a8.tar.gz
rockbox-8146b40e73bb999001787fbf414c96acf5dce2a8.zip
Fuze+: add a configurable deadzone area for touchpad buttons
To stop erroneous button presses, allow users to add a deadzone between the button via the Settings > General > System menu > Touch Dead Zone. The configuration was chosen this way: the touchpad has the same DPI in both direction so the setting applies the same on both the X and Y axis. The setting ranges from 0 to 100 and is internally multiplied by 2 giving a maximum deadzone of 2*100 = 200 around each button, which account for 400 total (once around each button), effectively reducing each virtual button from 1000x600 to 600x200 when using the maximum value. Change-Id: I8683c63d2950200eb32d1dda0a00bbd92d83d5be Reviewed-on: http://gerrit.rockbox.org/677 Reviewed-by: Benjamin Brown <foolshperson@gmail.com> Tested: Benjamin Brown <foolshperson@gmail.com> Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/button-target.h')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/button-target.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h b/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
index ce5ffe464a..7a4396e0f2 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
@@ -24,6 +24,7 @@
24#include <stdbool.h> 24#include <stdbool.h>
25bool button_debug_screen(void); 25bool button_debug_screen(void);
26void touchpad_set_sensitivity(int level); 26void touchpad_set_sensitivity(int level);
27void touchpad_set_deadzone(int touchpad_deadzone);
27void touchpad_enable_device(bool en); 28void touchpad_enable_device(bool en);
28 29
29/* Main unit's buttons */ 30/* Main unit's buttons */