diff options
| author | Tero Saarni <tero.saarni@gmail.com> | 2009-06-11 02:27:24 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-06-20 01:55:17 -0400 |
| commit | ec20a022aa24fc63d3ab59584cb1e5aa9a21d46c (patch) | |
| tree | 671086529e62fcb541fb03422010d1eeae09b00a /include | |
| parent | d7ed5d883c09c5474f842dcb148515dfaef2a567 (diff) | |
Input: synaptics - add support for reporting x/y resolution
Synaptics uses anisotropic coordinate system. On some wide touchpads
vertical resolution can be twice as high as horizontal which causes
unequal sensitivity on x/y directions. Add support for reading the
resolution with EVIOCGABS ioctl.
Signed-off-by: Tero Saarni <tero.saarni@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/input.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 6fed4f6a9c9e..8b3bc3e0d146 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
| @@ -53,6 +53,7 @@ struct input_absinfo { | |||
| 53 | __s32 maximum; | 53 | __s32 maximum; |
| 54 | __s32 fuzz; | 54 | __s32 fuzz; |
| 55 | __s32 flat; | 55 | __s32 flat; |
| 56 | __s32 resolution; | ||
| 56 | }; | 57 | }; |
| 57 | 58 | ||
| 58 | #define EVIOCGVERSION _IOR('E', 0x01, int) /* get driver version */ | 59 | #define EVIOCGVERSION _IOR('E', 0x01, int) /* get driver version */ |
| @@ -1109,6 +1110,7 @@ struct input_dev { | |||
| 1109 | int absmin[ABS_MAX + 1]; | 1110 | int absmin[ABS_MAX + 1]; |
| 1110 | int absfuzz[ABS_MAX + 1]; | 1111 | int absfuzz[ABS_MAX + 1]; |
| 1111 | int absflat[ABS_MAX + 1]; | 1112 | int absflat[ABS_MAX + 1]; |
| 1113 | int absres[ABS_MAX + 1]; | ||
| 1112 | 1114 | ||
| 1113 | int (*open)(struct input_dev *dev); | 1115 | int (*open)(struct input_dev *dev); |
| 1114 | void (*close)(struct input_dev *dev); | 1116 | void (*close)(struct input_dev *dev); |
