From 4355548f79375a62bb5e3bb5695190d48e4c0bc3 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 20 Dec 2019 21:06:54 +0100 Subject: Adds some changes left untouched for a long time. Not sure if those are good or not, will undo if necessary. --- conf/t520_touchpad.conf | 4 ++++ src/relabsd_device.c | 18 +++--------------- 2 files changed, 7 insertions(+), 15 deletions(-) create mode 100644 conf/t520_touchpad.conf diff --git a/conf/t520_touchpad.conf b/conf/t520_touchpad.conf new file mode 100644 index 0000000..988ccec --- /dev/null +++ b/conf/t520_touchpad.conf @@ -0,0 +1,4 @@ +# IBM Trackpoint +# AXIS MIN MAX FUZZ FLAT RESOLUTION OPTIONS +X -24 50 5 0 1 direct +Y -24 24 5 0 1 direct diff --git a/src/relabsd_device.c b/src/relabsd_device.c index f974e97..51dd6c0 100644 --- a/src/relabsd_device.c +++ b/src/relabsd_device.c @@ -269,16 +269,6 @@ void relabsd_device_set_axes_to_zero ) { int i; -// libevdev_uinput_write_event - relabsd_device_write_evdev_event - ( -// dev->uidev, - dev, - EV_SYN, - SYN_REPORT, - 0 - ); - for (i = 0; i < RELABSD_VALID_AXES_COUNT; ++i) { @@ -291,14 +281,12 @@ void relabsd_device_set_axes_to_zero relabsd_axis_to_abs((enum relabsd_axis) i), 0 ); - - /* - * Also send a SYN event when the axes have been modified. - */ - } } + /* + * Also send a SYN event when the axes have been modified. + */ libevdev_uinput_write_event ( dev->uidev, -- cgit v1.2.3-70-g09d2