diff --git a/polymer/eduke32/source/jmact/control.c b/polymer/eduke32/source/jmact/control.c index c43895e18..5393e0a6f 100644 --- a/polymer/eduke32/source/jmact/control.c +++ b/polymer/eduke32/source/jmact/control.c @@ -669,14 +669,16 @@ void CONTROL_PollDevices(ControlInfo *info) { CONTROL_GetMouseDelta(); - for (i=0; i= 0); } + if (CONTROL_JoystickEnabled) { CONTROL_GetJoyDelta(); @@ -685,13 +687,14 @@ void CONTROL_PollDevices(ControlInfo *info) //CONTROL_Axes[0].analog /= 2; //CONTROL_Axes[2].analog /= 2; - for (i=0; i= 0); } CONTROL_GetDeviceButtons(); @@ -701,7 +704,8 @@ void CONTROL_AxisFunctionState(int32 *p1) { int32 i, j; - for (i=0; i= 0); - for (i=0; i= 0); } void CONTROL_ButtonFunctionState(int32 *p1) { - int32 i, j; + int32 i = CONTROL_NumMouseButtons-1, j; - for (i=0; i= 0); - for (i=0; i= 0); } /* void CONTROL_GetUserInput( UserInput *info ) @@ -865,27 +870,31 @@ void CONTROL_ClearButton(int32 whichbutton) void CONTROL_ProcessBinds(void) { - int i; + int i=MAXBOUNDKEYS-1; if (!bindsenabled) return; - - for (i=0;i