From e82add1f62ed4cb19d312b550efd8587acee1740 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 30 Sep 2006 09:35:02 +0000 Subject: [PATCH] SetInputScheme --- stepmania/src/StepMania.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 1e6fbaed80..61edd4bb33 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -762,7 +762,10 @@ void StepMania::ChangeCurrentGame( const Game* g ) /* Load keymaps for the new game. */ if( INPUTMAPPER ) + { + INPUTMAPPER->SetInputScheme( &g->m_InputScheme ); INPUTMAPPER->ReadMappingsFromDisk(); + } } static void ReadGamePrefsFromDisk() @@ -1031,6 +1034,9 @@ int main(int argc, char* argv[]) LIGHTSMAN = new LightsManager; INPUTFILTER = new InputFilter; INPUTMAPPER = new InputMapper; + + StepMania::ChangeCurrentGame( GAMESTATE->GetCurrentGame() ); + INPUTQUEUE = new InputQueue; SONGINDEX = new SongCacheIndex; BANNERCACHE = new BannerCache;