From cf2f7927ea167872752674ccf1fe0f697560ced5 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 24 Aug 2008 04:55:57 +0000 Subject: [PATCH] Believe it or not, this actually consistently gave me a few fps in my test scenario git-svn-id: https://svn.eduke32.com/eduke32@1014 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/jmact/control.c | 68 ++++++++++++++++---------- 1 file changed, 43 insertions(+), 25 deletions(-) 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