mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-13 22:22:05 +00:00
Minor logic fix to guarantee only one joystick axis key change per event poll
This commit is contained in:
parent
40a33f4806
commit
007f63263b
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ sysEvent_t Sys_GetEvent()
|
|||
res.evValue = controllerAxisRemap[axisIndex][0];
|
||||
res.evValue2 = stickNeg ? 1 : 0;
|
||||
}
|
||||
if( buttonStates[controllerAxisRemap[axisIndex][1]] != stickPos )
|
||||
else if( buttonStates[controllerAxisRemap[axisIndex][1]] != stickPos )
|
||||
{
|
||||
buttonStates[controllerAxisRemap[axisIndex][1]] = stickPos;
|
||||
res.evType = SE_KEY;
|
||||
|
|
Loading…
Reference in a new issue