mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 08:00:09 +01:00
tools: fix touchpad-edge-detector udev rule output
off-by-one error on the ABS_ axes printed. ABS_X/Y are 0 and 1. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
100448ae8e
commit
33d51dbaa4
1 changed files with 2 additions and 2 deletions
|
|
@ -203,8 +203,8 @@ print_udev_override_rule(struct libevdev *dev, const struct dimensions *dim) {
|
|||
|
||||
printf("# <Laptop model description goes here>\n"
|
||||
"evdev:%s*\n"
|
||||
" EVDEV_ABS_01=%d:%d:<x resolution>\n"
|
||||
" EVDEV_ABS_02=%d:%d:<y resolution>\n",
|
||||
" EVDEV_ABS_00=%d:%d:<x resolution>\n"
|
||||
" EVDEV_ABS_01=%d:%d:<y resolution>\n",
|
||||
match,
|
||||
dim->left, dim->right,
|
||||
dim->top, dim->bottom);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue