summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gerecke <jason.gerecke@wacom.com>2022-01-07 10:52:57 -0800
committerPeter Hutterer <peter.hutterer@who-t.net>2022-01-08 16:09:35 +1000
commite4094a72fed413d43951b0dc113351c0d84516aa (patch)
tree2e5d0c582460288aaacffb627d2e0f48051a4515
parenta78392d8d6e9aa344c7d09f5b1330fc7aeb8ef96 (diff)
downloadxf86-input-wacom-e4094a72fed413d43951b0dc113351c0d84516aa.tar.gz
Report puck "throttle" (absolute scrollwheel) data in correct axis
The "throttle" / absolute scrollwheel found on devices like the 4D Mouse should be reported in the v4 axis. A typo in a previous commit caused it to stop being reported. Fixes: 58a931bc21 ("Abstract the event interface to pass a struct with axis data around") Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
-rw-r--r--src/wcmCommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 87d8ecf..f0a2f86 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -884,7 +884,7 @@ void wcmSendEvents(WacomDevicePtr priv, const WacomDeviceState* ds)
wcmAxisSet(&axes, WACOM_AXIS_ROTATION, ds->rotation);
wcmAxisSet(&axes, WACOM_AXIS_THROTTLE, ds->throttle);
v3 = ds->rotation;
- v4 = ds->rotation;
+ v4 = ds->throttle;
} else
{
wcmAxisSet(&axes, WACOM_AXIS_TILT_X, tx);