From 1e23b944aae3ef50cc764e6d2f0198deabe790ad Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sat, 22 Nov 2008 17:36:14 +0100 Subject: W axis support for bsd_mouse. --- src/bsd_mouse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bsd_mouse.c b/src/bsd_mouse.c index ede7612..83054eb 100644 --- a/src/bsd_mouse.c +++ b/src/bsd_mouse.c @@ -428,6 +428,11 @@ wsconsReadInput(InputInfoPtr pInfo) case WSCONS_EVENT_MOUSE_DELTA_Z: dz = event->value; break; +#endif +#ifdef WSCONS_EVENT_MOUSE_DELTA_W + case WSCONS_EVENT_MOUSE_DELTA_W: + dw = event->value; + break; #endif default: xf86Msg(X_WARNING, "%s: bad wsmouse event type=%d\n", pInfo->name, @@ -491,6 +496,7 @@ typedef struct _UsbMseRec { hid_item_t loc_x; /* x locator item */ hid_item_t loc_y; /* y locator item */ hid_item_t loc_z; /* z (wheel) locator item */ + hid_item_t loc_w; /* z (wheel) locator item */ hid_item_t loc_btn[MSE_MAXBUTTONS]; /* buttons locator items */ unsigned char *buffer; } UsbMseRec, *UsbMsePtr; @@ -610,6 +616,7 @@ usbReadInput(InputInfoPtr pInfo) dx = hid_get_data(pBuf, &pUsbMse->loc_x); dy = hid_get_data(pBuf, &pUsbMse->loc_y); dz = hid_get_data(pBuf, &pUsbMse->loc_z); + dw = hid_get_data(pBuf, &pUsbMse->loc_w); buttons = 0; for (n = 0; n < pMse->buttons; n++) { -- cgit v1.2.3