mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-21 01:13:38 +00:00
Dont pass wheel mouse buttons as real buttons, map them as Z-Axis movement
on SCO and USL. Re-instate the ZAxisMapping default for the mouse
driver.
This commit is contained in:
parent
1b26fe6d20
commit
e4554db8f8
3 changed files with 16 additions and 30 deletions
|
|
@ -86,14 +86,8 @@ OsMouseProc(DeviceIntPtr pPointer, int what)
|
|||
case DEVICE_INIT:
|
||||
pPointer->public.on = FALSE;
|
||||
|
||||
map[1] = 1;
|
||||
map[2] = 2;
|
||||
map[3] = 3;
|
||||
map[4] = 7;
|
||||
map[5] = 8;
|
||||
map[6] = 6;
|
||||
map[7] = 4;
|
||||
map[8] = 5;
|
||||
for (ret = 0; ret <= 8; ret++)
|
||||
map[ret] = ret;
|
||||
|
||||
InitPointerDeviceStruct((DevicePtr)pPointer, map, 8,
|
||||
miPointerGetMotionEvents, pMse->Ctrl,
|
||||
|
|
|
|||
|
|
@ -287,15 +287,12 @@ XqSignalHandler (int signo)
|
|||
|
||||
case XQ_WHEEL:
|
||||
if (pMse) {
|
||||
int wbut = pMse->lastButtons;
|
||||
int wbut = pMse->lastButtons, dz;
|
||||
if (xqEvents[xqHead].xq_code == 1)
|
||||
wbut |= 0x80;
|
||||
dz = 1;
|
||||
else
|
||||
wbut |= 0x40;
|
||||
pMse->PostEvent(xqMouse, wbut, 0, 0, 0, 0);
|
||||
/* Simulate button release */
|
||||
wbut &= ~0xc0;
|
||||
pMse->PostEvent(xqMouse, wbut, 0, 0, 0, 0);
|
||||
dz = -1;
|
||||
pMse->PostEvent(xqMouse, wbut, 0, 0, dz, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue