From 8146b40e73bb999001787fbf414c96acf5dce2a8 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 1 Dec 2013 18:25:42 +0000 Subject: 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 Tested: Benjamin Brown Reviewed-by: Amaury Pouly --- firmware/export/config/sansafuzeplus.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware/export/config/sansafuzeplus.h') diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index c6f30ab00e..270060d594 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h @@ -80,6 +80,14 @@ #define MAX_TOUCHPAD_SENSITIVITY_SETTING 25 #define DEFAULT_TOUCHPAD_SENSITIVITY_SETTING 13 +/* Define this to enable dead zone on touchpad */ +#ifndef SIMULATOR +#define HAVE_TOUCHPAD_DEADZONE +#define DEFAULT_TOUCHPAD_DEADZONE_SETTING 30 +#define MIN_TOUCHPAD_DEADSPACE_SETTING 0 +#define MAX_TOUCHPAD_DEADSPACE_SETTING 100 +#endif + /* Define this to enable morse code input */ #define HAVE_MORSE_INPUT -- cgit v1.2.3