git-svn-id: https://svn.eduke32.com/eduke32@1016 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-08-24 06:06:04 +00:00
parent b58833d730
commit 57c3cea591

View file

@ -692,9 +692,10 @@ void CONTROL_PollDevices(ControlInfo *info)
void CONTROL_AxisFunctionState(int32 *p1) void CONTROL_AxisFunctionState(int32 *p1)
{ {
int32 i, j; if (CONTROL_NumMouseAxes)
{
int32 j, i = CONTROL_NumMouseAxes-1;
i = CONTROL_NumMouseAxes-1;
do do
{ {
if (!CONTROL_MouseAxes[i].digital) continue; if (!CONTROL_MouseAxes[i].digital) continue;
@ -707,8 +708,11 @@ void CONTROL_AxisFunctionState(int32 *p1)
if (j != AXISUNDEFINED) if (j != AXISUNDEFINED)
p1[j] = 1; p1[j] = 1;
} while (--i >= 0); } while (--i >= 0);
}
i = CONTROL_NumJoyAxes-1; if (CONTROL_NumJoyAxes)
{
int32 j, i = CONTROL_NumJoyAxes-1;
do do
{ {
@ -723,6 +727,7 @@ void CONTROL_AxisFunctionState(int32 *p1)
p1[j] = 1; p1[j] = 1;
} while (--i >= 0); } while (--i >= 0);
} }
}
void CONTROL_ButtonFunctionState(int32 *p1) void CONTROL_ButtonFunctionState(int32 *p1)
{ {