Return -1 if no InputDevice numbers can be assigned to logical devices.

This commit is contained in:
Steve Checkoway
2006-02-27 00:21:14 +00:00
parent 5a916de95b
commit a63a1284fa
3 changed files with 11 additions and 14 deletions
@@ -165,11 +165,8 @@ void JoystickDevice::GetButtonPresses( vector<pair<DeviceInput, bool> >& vPresse
int JoystickDevice::AssignIDs( InputDevice startID )
{
if( startID < DEVICE_JOY1 )
{
m_vSticks.clear();
return 0;
}
if( startID < DEVICE_JOY1 || startID > DEVICE_JOY16 )
return -1;
FOREACH( Joystick, m_vSticks, i )
{
if( startID > DEVICE_JOY16 )