summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-12-20 21:06:54 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-12-20 21:06:54 +0100
commit4355548f79375a62bb5e3bb5695190d48e4c0bc3 (patch)
treea5328f58758a965abf427113073dcdeb75d7ae27
parent1f3930a88f4feb9948854af35c979bd7ac7dd040 (diff)
Adds some changes left untouched for a long time.
Not sure if those are good or not, will undo if necessary.
-rw-r--r--conf/t520_touchpad.conf4
-rw-r--r--src/relabsd_device.c18
2 files changed, 7 insertions, 15 deletions
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,