add InputDevice::DevicesChanged

This commit is contained in:
Chris Danford
2005-12-18 03:08:12 +00:00
parent 3b9479e271
commit c95a5dc8e5
8 changed files with 147 additions and 96 deletions
+8
View File
@@ -19,6 +19,7 @@
#include "LightsManager.h"
#include "NetworkSyncManager.h"
#include "RageTimer.h"
#include "RageInput.h"
#include "StepMania.h"
@@ -97,6 +98,13 @@ void GameLoop()
/* Important: Process input AFTER updating game logic, or input will be acting on song beat from last frame */
HandleInputEvents( fDeltaTime );
if( INPUTMAN->DevicesChanged() )
{
SAFE_DELETE( INPUTMAN );
INPUTMAN = new RageInput( PREFSMAN->GetInputDrivers() );
StepMania::CheckForChangedInputDevicesAndRemap();
}
LIGHTSMAN->Update( fDeltaTime );
/*