[PATCH evdev 1/2] Input API 12 requires a valuator mode for each axis.
Benjamin Tissoires
tissoire at cena.fr
Tue Oct 26 04:56:12 PDT 2010
Quite easy to review this one... ;)
Reviewed-by: Benjamin Tissoires <tissoire at cena.fr>
Le 26/10/2010 02:11, Peter Hutterer a écrit :
> Signed-off-by: Peter Hutterer<peter.hutterer at who-t.net>
> ---
> src/evdev.c | 12 ++++++++++--
> 1 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/src/evdev.c b/src/evdev.c
> index 32253a2..018843f 100644
> --- a/src/evdev.c
> +++ b/src/evdev.c
> @@ -1333,7 +1333,11 @@ EvdevAddAbsClass(DeviceIntPtr device)
> #endif
> pEvdev->absinfo[axis].minimum,
> pEvdev->absinfo[axis].maximum,
> - resolution, 0, resolution);
> + resolution, 0, resolution
> +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION)>= 12
> + , Absolute
> +#endif
> + );
> xf86InitValuatorDefaults(device, axnum);
> pEvdev->old_vals[axnum] = -1;
> }
> @@ -1449,7 +1453,11 @@ EvdevAddRelClass(DeviceIntPtr device)
> #if GET_ABI_MAJOR(ABI_XINPUT_VERSION)>= 7
> atoms[axnum],
> #endif
> - -1, -1, 1, 0, 1);
> + -1, -1, 1, 0, 1
> +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION)>= 12
> + , Relative
> +#endif
> + );
> xf86InitValuatorDefaults(device, axnum);
> }
>
More information about the xorg-devel
mailing list