- 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:
Randy Heit 2009-06-06 02:55:58 +00:00
commit bdd3188897
7 changed files with 52 additions and 21 deletions

View file

@ -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