public MonitorForm() { InitializeComponent(); updateThread = new Thread(new ThreadStart(() => { HighResTimer hrt = new HighResTimer(); while (true) { hrt.Start(); UpdateMain(GBMonitor.CPUTime); UpdateBlit(GBMonitor.BlitTime); } })); updateThread.Start(); }
public Win32InputHandler() { pollTimer = new HighResTimer(); keySettings = new KeySettings(); keySettings.Keyboard_Button_A = Keys.X; keySettings.Keyboard_Button_B = Keys.Z; keySettings.Keyboard_Button_Start = Keys.Return; keySettings.Keyboard_Button_Select = Keys.RightShift; keySettings.Keyboard_Button_Up = Keys.Up; keySettings.Keyboard_Button_Down = Keys.Down; keySettings.Keyboard_Button_Left = Keys.Left; keySettings.Keyboard_Button_Right = Keys.Right; keySettings.Keyboard_Button_Pause = Keys.P; keySettings.Keyboard_Button_FrameLimit = Keys.F; keySettings.Controller_Button_A = 1; keySettings.Controller_Button_B = 2; keySettings.Controller_Button_Start = 9; keySettings.Controller_Button_Select = 8; input = new DirectInput(); InitializeController(Guid.Empty); }