summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uts.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-04-10 22:37:14 +0000
committermiod <miod@openbsd.org>2007-04-10 22:37:14 +0000
commit2fc38322850726455cc7644d9fc5bd5d6e6d454f (patch)
treed55d00cfb1ebd617e06fa7da7c9b376316c7dac0 /sys/dev/usb/uts.c
parentsort entity types (diff)
downloadwireguard-openbsd-2fc38322850726455cc7644d9fc5bd5d6e6d454f.tar.xz
wireguard-openbsd-2fc38322850726455cc7644d9fc5bd5d6e6d454f.zip
Add support for a fourth axis on wsmouse devices, e.g. on the Apple Might
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
Diffstat (limited to 'sys/dev/usb/uts.c')
-rw-r--r--sys/dev/usb/uts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uts.c b/sys/dev/usb/uts.c
index 7de16ae042a..2831725411c 100644
--- a/sys/dev/usb/uts.c
+++ b/sys/dev/usb/uts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uts.c,v 1.2 2007/03/23 14:35:19 robert Exp $ */
+/* $OpenBSD: uts.c,v 1.3 2007/04/10 22:37:17 miod Exp $ */
/*
* Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
@@ -395,7 +395,7 @@ uts_intr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
return;
}
- wsmouse_input(sc->sc_wsmousedev, tp.z, tp.x, tp.y, 0,
+ wsmouse_input(sc->sc_wsmousedev, tp.z, tp.x, tp.y, 0, 0,
WSMOUSE_INPUT_ABSOLUTE_X | WSMOUSE_INPUT_ABSOLUTE_Y |
WSMOUSE_INPUT_ABSOLUTE_Z);
sc->sc_oldy = tp.y;