- Q3 UI IS NOW BROKEN -

mouse5/6/7/8 attempt (rid #1217412)
DX3/DX7 dual compatibility (hopefully, needs testing)


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1098 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-06-18 22:30:57 +00:00
parent 741126d966
commit e5b76314ac
6 changed files with 280 additions and 114 deletions

View file

@ -264,8 +264,8 @@ void Sys_SendKeyEvents(void)
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
//Hmm. SDL allows for 255 buttons...
if (event.button.button > 6)
event.button.button = 6;
if (event.button.button > 10)
event.button.button = 10;
Key_Event(K_MOUSE1+event.button.button-1, event.button.state);
break;