fix stale INPUTMAN pointer in Lua after device change

This commit is contained in:
Glenn Maynard
2005-12-18 21:24:33 +00:00
parent 636369ba4b
commit e9ffd980f0
3 changed files with 19 additions and 7 deletions
+1 -2
View File
@@ -100,8 +100,7 @@ void GameLoop()
if( INPUTMAN->DevicesChanged() )
{
SAFE_DELETE( INPUTMAN );
INPUTMAN = new RageInput( PREFSMAN->GetInputDrivers() );
INPUTMAN->LoadDrivers();
StepMania::CheckForChangedInputDevicesAndRemap();
}