mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
ccd89d199b
commit
187dffc5f4
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue