diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-10 22:37:18 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-10 22:37:18 +0000 |
commit | 4395ebb5d960c7e79e0751653ed70652bb5c750e (patch) | |
tree | f3fbbc3ee965b802ffcc2ec46881747e95afdf75 /sys/dev/pckbc | |
parent | b50c42daab6dfe37e18820055d043474e3fa21f7 (diff) |
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/pckbc')
-rw-r--r-- | sys/dev/pckbc/psm.c | 4 | ||||
-rw-r--r-- | sys/dev/pckbc/psm_intelli.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pckbc/psm.c b/sys/dev/pckbc/psm.c index 8882f1e1b9b..e8708820eb2 100644 --- a/sys/dev/pckbc/psm.c +++ b/sys/dev/pckbc/psm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psm.c,v 1.4 2002/03/14 01:27:00 millert Exp $ */ +/* $OpenBSD: psm.c,v 1.5 2007/04/10 22:37:17 miod Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -319,7 +319,7 @@ int data; if (sc->dx || dy || changed) wsmouse_input(sc->sc_wsmousedev, - sc->buttons, sc->dx, dy, 0, + sc->buttons, sc->dx, dy, 0, 0, WSMOUSE_INPUT_DELTA); break; } diff --git a/sys/dev/pckbc/psm_intelli.c b/sys/dev/pckbc/psm_intelli.c index be98095a06d..edcc3eb61bb 100644 --- a/sys/dev/pckbc/psm_intelli.c +++ b/sys/dev/pckbc/psm_intelli.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psm_intelli.c,v 1.4 2002/03/14 01:27:00 millert Exp $ */ +/* $OpenBSD: psm_intelli.c,v 1.5 2007/04/10 22:37:17 miod Exp $ */ /* $NetBSD: psm_intelli.c,v 1.8 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -344,7 +344,7 @@ int data; if (sc->dx || sc->dy || dz || changed) wsmouse_input(sc->sc_wsmousedev, - sc->buttons, sc->dx, sc->dy, dz, + sc->buttons, sc->dx, sc->dy, dz, 0, WSMOUSE_INPUT_DELTA); break; } |