path: root/apps/settings.h
diff options
authorAmaury Pouly <>2013-12-01 18:25:42 +0000
committerAmaury Pouly <>2014-09-08 11:21:54 +0200
commit8146b40e73bb999001787fbf414c96acf5dce2a8 (patch)
treee3a1b2f951fd439c71d82e387d04df10d926b4e9 /apps/settings.h
parent847106cdb20a0297dc9a10f212f0e3c8e6f3d58c (diff)
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: Reviewed-by: Benjamin Brown <> Tested: Benjamin Brown <> Reviewed-by: Amaury Pouly <>
Diffstat (limited to 'apps/settings.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 60658f6857..3ec5ee6207 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -460,6 +460,10 @@ struct user_settings
int touchpad_sensitivity;
+ int touchpad_deadzone;
int pause_rewind; /* time in s to rewind when pausing */
int unplug_mode; /* pause on headphone unplug */