Zeropad: Fixes a minor mistake in r1286.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1294 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-05-30 12:11:21 +00:00
parent ccd89d199b
commit 187dffc5f4
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ int _GetJoystickIdFromPAD(int pad)
}
}
if (JoystickIdWithinBounds(joyid))
if (!JoystickIdWithinBounds(joyid))
{
// get first unused joystick
for (joyid = 0; joyid < s_vjoysticks.size(); ++joyid)

View File

@ -71,7 +71,7 @@ const char *HatName(int value)
bool JoystickIdWithinBounds(int joyid)
{
return (!((joyid < 0) || (joyid >= (int)s_vjoysticks.size())));
return ((joyid >= 0) && (joyid < (int)s_vjoysticks.size()));
}
// opens handles to all possible joysticks
void JoystickInfo::EnumerateJoysticks(vector<JoystickInfo*>& vjoysticks)