aboutsummaryrefslogtreecommitdiff
path: root/xcursor/meson.build
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2022-02-25 17:30:31 +0100
committerJosé Expósito <jose.exposito89@gmail.com>2022-07-11 11:01:35 +0200
commit65c436407f37118618b348b9b7303b55322d66a2 (patch)
tree5d2d03c15c91556cb44e7f4d4c9dcb775ee6d200 /xcursor/meson.build
parentc84cc660f0309a4139010be3cea631c464c52c11 (diff)
pointer: transform low-res to high-res axis events
Currently, the "wlr_event_pointer_axis" event stores low-resolution values in its "delta_discrete" field. Low-resolution values are always multiples of one, i.e., 1 for one wheel detent, 2 for two wheel detents, etc. In order to simplify internal handling of events, always transform in the backend from the low-resolution value into the high-resolution value. The transformation is performed by multiplying by 120. The 120 magic number is used by the kernel and it is exposed to clients in the "WLR_POINTER_AXIS_DISCRETE_STEP" constant.
Diffstat (limited to 'xcursor/meson.build')
0 files changed, 0 insertions, 0 deletions