Mailinglist Archive: opensuse-bugs (6424 mails)

< Previous Next >
[Bug 144682] fast scrolling with mouse wheel scrolls horizontally
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 13 May 2007 09:32:37 -0600 (MDT)
  • Message-id: <20070513153237.37E9025C88C@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=144682





------- Comment #44 from eich@xxxxxxxxxx  2007-05-13 09:32 MST -------
This is bogus. MouseReadInput() is for low level event reading.
Mapping details don't belong there but should all be handled in the
PostEvent handling.
I would like to separeate all these post event handlings to 
make it available to other mice drivers. Therefore it needs to
be kept away from the low level event reading code. 

I took pains to separate those things once.

Please fix.

@@ -1506,7 +1503,21 @@ MouseReadInput(InputInfoPtr pInfo)
                      (pBuf[3] & 0x20) >> 1;        /* button 5 */
            dx = (pBuf[0] & 0x10) ?    pBuf[1]-256  :  pBuf[1];
            dy = (pBuf[0] & 0x20) ?  -(pBuf[2]-256) : -pBuf[2];
-           dz = (pBuf[3] & 0x08) ? (pBuf[3] & 0x0f) - 16 : (pBuf[3] & 0x0f);
+           if (pMse->negativeW != MSE_NOAXISMAP) {
+               switch (pBuf[3] & 0x0f) {
+               case 0x00:          break;
+               case 0x01: dz =  1; break;
+               case 0x02: dw =  1; break;
+               case 0x0e: dw = -1; break;
+               case 0x0f: dz = -1; break;
+               default:
+                   xf86Msg(X_INFO,
+                           "Mouse autoprobe: Disabling secondary wheel\n");
+                   pMse->negativeW = pMse->positiveW = MSE_NOAXISMAP;
+               }
+           }
+           if (pMse->negativeW == MSE_NOAXISMAP)
+               dz = (pBuf[3]&0x08) ? (pBuf[3]&0x0f) - 16 : (pBuf[3]&0x0f);


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >