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:
Peter Hutterer 2015-11-10 12:49:45 +10:00
parent 100448ae8e
commit 33d51dbaa4

View file

@ -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);