summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uts.c
diff options
context:
space:
mode:
authorbru <bru@openbsd.org>2016-06-05 20:15:54 +0000
committerbru <bru@openbsd.org>2016-06-05 20:15:54 +0000
commit84b8bfafcf081b372c707cc631fb554761be5550 (patch)
treebba85396fcfb25b3428d976d32840a183cc10c66 /sys/dev/usb/uts.c
parentContinue preparing a future merge of urtwn(4) and rtwn(4). (diff)
downloadwireguard-openbsd-84b8bfafcf081b372c707cc631fb554761be5550.tar.xz
wireguard-openbsd-84b8bfafcf081b372c707cc631fb554761be5550.zip
Use the new input functions of wsmouse in mouse and touchscreen drivers.
ok stsp@ kettenis@
Diffstat (limited to 'sys/dev/usb/uts.c')
-rw-r--r--sys/dev/usb/uts.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/uts.c b/sys/dev/usb/uts.c
index cc13d844f33..f3dfd36d278 100644
--- a/sys/dev/usb/uts.c
+++ b/sys/dev/usb/uts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uts.c,v 1.37 2016/02/10 05:49:50 guenther Exp $ */
+/* $OpenBSD: uts.c,v 1.38 2016/06/05 20:15:54 bru Exp $ */
/*
* Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
@@ -476,9 +476,7 @@ uts_intr(struct usbd_xfer *xfer, void *addr, usbd_status status)
DPRINTF(("%s: tp.down = %d, tp.z = %d, tp.x = %d, tp.y = %d\n",
sc->sc_dev.dv_xname, tp.down, tp.z, tp.x, tp.y));
- wsmouse_input(sc->sc_wsmousedev, tp.down, tp.x, tp.y, tp.z, 0,
- WSMOUSE_INPUT_ABSOLUTE_X | WSMOUSE_INPUT_ABSOLUTE_Y |
- WSMOUSE_INPUT_ABSOLUTE_Z);
+ WSMOUSE_TOUCH(sc->sc_wsmousedev, tp.down, tp.x, tp.y, tp.z, 0);
sc->sc_oldy = tp.y;
sc->sc_oldx = tp.x;