diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-10-28 15:08:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-11-04 12:10:52 +1000 |
commit | 58c7a9cbf0aaa49b4802f2460acee20e4807dc28 (patch) | |
tree | b7c1ceef417fbb651cac0cf02aa5f39038b2b68b /src/libinput-private.h | |
parent | e0ccfc87f047ff3c5595e268869c071c0b48428d (diff) |
evdev: implement support for the MOUSE_WHEEL_CLICK_COUNT property
Not all mice have a click angle with integer degrees. The new
MOUSE_WHEEL_CLICK_COUNT property specifies how many clicks per full rotation,
the angle can be calculated from that.
See https://github.com/systemd/systemd/pull/4440 for more information
CLICK_COUNT overrides CLICK_ANGLE, so we check for the former first and then
fall back to the angle if need be. No changes to the user-facing API.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/libinput-private.h')
-rw-r--r-- | src/libinput-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libinput-private.h b/src/libinput-private.h index 5b46da79..52f129aa 100644 --- a/src/libinput-private.h +++ b/src/libinput-private.h @@ -73,7 +73,7 @@ struct normalized_range_coords { /* A pair of angles in degrees */ struct wheel_angle { - int x, y; + double x, y; }; /* A pair of angles in degrees */ |