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
+1 -1
View File
@@ -2200,7 +2200,7 @@ void ScreenGameplay::Input( const DeviceInput& DeviceI, const InputEventType typ
StyleInput _StyleI;
INPUTMAPPER->GameToStyle( _GameI, _StyleI );
mp = (MultiPlayer)(DeviceI.device - DEVICE_JOY1);
mp = InputMapper::InputDeviceToMultiPlayer( DeviceI.device );
if( mp>=0 && mp<NUM_MultiPlayer )
m_vPlayerInfo[mp].m_pPlayer->Step( _StyleI.col, DeviceI.ts );