summaryrefslogtreecommitdiff
path: root/tools/libinput-debug-events.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2023-04-18 16:53:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2023-04-27 13:15:14 +1000
commitd3481c88072d0a9713939d0eb0fb83478a032186 (patch)
tree374ec884f7565b5167edd492ec432b8a3bdebdfd /tools/libinput-debug-events.c
parent64af4beb6b969ce346b0c30648e833c3db7b5e86 (diff)
downloadlibinput-d3481c88072d0a9713939d0eb0fb83478a032186.tar.gz
evdev: if a device's rotation is around 180 degrees, flip the wheel
For a device used upside-down, make sure the wheels correspond to the new physical directions. There's a grace range of 20 degrees either way since that seems like it makes sense. For 90 degree rotation (or 270 degree) the wheel is left as-is, the heuristics to guess what angle we want in this case is not clear enough. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/libinput-debug-events.c')
0 files changed, 0 insertions, 0 deletions