fix minimal

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4701 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-06-27 16:19:22 +00:00
parent 51baf65e9b
commit a842a623e4
2 changed files with 4 additions and 0 deletions

View File

@ -205,9 +205,11 @@ void IN_Commands(void)
Key_Event(ev->devid, ev->keyboard.scancode, ev->keyboard.unicode, ev->type == IEV_KEYDOWN);
break;
case IEV_JOYAXIS:
#ifdef CSQC_DAT
if (CSQC_JoystickAxis(ev->joy.axis, ev->joy.value, ev->devid))
joy[ev->devid].axis[ev->joy.axis] = 0;
else
#endif
joy[ev->devid].axis[ev->joy.axis] = ev->joy.value;
break;
case IEV_MOUSEDELTA:

View File

@ -1869,8 +1869,10 @@ void INS_JoyMove (float *movements, int pnum)
// convert range from -32768..32767 to -1..1
fAxisValue /= 32768.0;
#ifdef CSQC_DAT
if (CSQC_JoystickAxis(i, fAxisValue, 0))
continue;
#endif
switch (dwAxisMap[i])
{