cleanup MultiPlayer/InputDevice mapping

This commit is contained in:
Chris Danford
2005-08-30 16:22:48 +00:00
parent 23540308ef
commit aaa7a2d18a
4 changed files with 18 additions and 5 deletions
+10
View File
@@ -695,6 +695,16 @@ void InputMapper::ResetKeyRepeat( StyleInput StyleI )
ResetKeyRepeat( GameI );
}
InputDevice InputMapper::MultiPlayerToInputDevice( MultiPlayer mp )
{
return (InputDevice)(mp + DEVICE_JOY1);
}
MultiPlayer InputMapper::InputDeviceToMultiPlayer( InputDevice id )
{
return (MultiPlayer)(id - DEVICE_JOY1);
}
/*
* (c) 2001-2003 Chris Danford
* All rights reserved.