diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-10-28 17:10:45 +1030 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-28 17:26:20 +1030 |
commit | 2acbd6e67c859290a37cf3134b120c5ca7577268 (patch) | |
tree | 2a112e91e867bebd74776f1bfa20930826f2344f /src/synapticsstr.h | |
parent | 934bc0012f948c52aadc8eda912f7728fb7394a2 (diff) |
Add support for touchpads (such as Elantech) that do not report pressure
Change the driver to react to BTN_TOUCH if device does not report
ABS_PRESSURE since there are touchpads (such as Elantech) that do not
support pressure reading but otherwise are perfectly useable in absolute
mode.
Also fix error checking of ioctl calls (positive return value is not an
error, only negative is).
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'src/synapticsstr.h')
-rw-r--r-- | src/synapticsstr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synapticsstr.h b/src/synapticsstr.h index cc0a29f..688167c 100644 --- a/src/synapticsstr.h +++ b/src/synapticsstr.h @@ -145,6 +145,7 @@ typedef struct _SynapticsPrivateRec Bool has_middle; /* middle button detected for this device */ Bool has_double; /* double click detected for this device */ Bool has_triple; /* triple click detected for this device */ + Bool has_pressure; /* device reports pressure */ } SynapticsPrivate; #endif /* _SYNAPTICSSTR_H_ */ |