libinput-device: use the discrete axis value for wheel events
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 15 Jan 2015 03:14:43 +0000 (13:14 +1000)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 15 Jan 2015 06:41:56 +0000 (14:41 +0800)
commit5dddd411d6d8587267529d0478c5dc68e9521047
treeff30e5973628b9bc83d541e62487fd28aca34233
parentc54f23d8df4e758f097d127df4d44d7a00059cef
libinput-device: use the discrete axis value for wheel events

libinput < 0.8 sent wheel click events with value 10. Since 0.8
the value is the angle of the click in degrees but it now provides
the click count as separate value. To keep backwards-compat with
existing clients, we just send multiples of the click count.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
src/libinput-device.c