Define active controller whenever a new null emulator is created

This commit is contained in:
andres.delikat 2011-05-08 14:25:51 +00:00
parent fcae514df5
commit a3b996e4e2
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ namespace BizHawk.MultiClient
InitControls();
Global.Emulator = new NullEmulator();
InputLog.StopMovie();
Global.ActiveController = Global.NullControls;
Global.Sound = new Sound(Handle, Global.DSound);
Global.Sound.StartSound();
@ -696,6 +697,7 @@ namespace BizHawk.MultiClient
}
Global.Emulator = new NullEmulator();
InputLog.StopMovie();
Global.ActiveController = Global.NullControls;
}
[System.Security.SuppressUnmanagedCodeSecurity, DllImport("User32.dll", CharSet = CharSet.Auto)]