diff options
author | Jason Gerecke <killertofu@gmail.com> | 2016-04-22 14:30:53 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-05-03 11:55:05 +0200 |
commit | bef7e200065086e2ceef091f6853f3b053ad2ba9 (patch) | |
tree | 97ff7ba5b20414fb89444970a5cfbb2a5e34031f /drivers/hid/wacom_sys.c | |
parent | 1c74a7f812b135d3df41d7c3671b647aed6467bf (diff) | |
download | linux-bef7e200065086e2ceef091f6853f3b053ad2ba9.tar.bz2 |
HID: wacom: Add fuzz factor to distance and tilt axes
The fuzz present on the distance and tilt axes is noticable when a puck is
present, and userspace (specifically libinput) would like the ability to
filter out the noise. To facilitate this, we assign a fuzz value of '1'
for the distance and tilt axes. This is large enough to cover most of the
natural variation in distance value as the puck is moved around, and
enough to cover the jitter in rotation (reported through tilt axes) when
the puck is left alone.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/wacom_sys.c')
-rw-r--r-- | drivers/hid/wacom_sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index ccf1883318c3..499cc8213cfe 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -493,7 +493,8 @@ static void wacom_retrieve_hid_descriptor(struct hid_device *hdev, features->x_fuzz = 4; features->y_fuzz = 4; features->pressure_fuzz = 0; - features->distance_fuzz = 0; + features->distance_fuzz = 1; + features->tilt_fuzz = 1; /* * The wireless device HID is basic and layout conflicts with |