- Added support for horizontal mouse wheels, and set invprev/invnext as
default bindings for it. (Only works with Raw Input on XP. Vista has support through Win32 mouse, as well. DirectInput does not support it at all, because the DirectInput mouse device does not expose this control.) SVN r1640 (trunk)
This commit is contained in:
parent
7df2d40e8f
commit
bdd3188897
7 changed files with 52 additions and 21 deletions
|
|
@ -1428,11 +1428,11 @@ static bool C_HandleKey (event_t *ev, BYTE *buffer, int len)
|
|||
case EV_GUI_WheelDown:
|
||||
if (!(ev->data3 & GKM_SHIFT))
|
||||
{
|
||||
data1 = GK_PGDN + ev->subtype - EV_GUI_WheelDown;
|
||||
data1 = GK_PGDN + EV_GUI_WheelDown - ev->subtype;
|
||||
}
|
||||
else
|
||||
{
|
||||
data1 = GK_DOWN + ev->subtype - EV_GUI_WheelDown;
|
||||
data1 = GK_DOWN + EV_GUI_WheelDown - ev->subtype;
|
||||
}
|
||||
// Intentional fallthrough
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue