protected override void Initialize() { base.Initialize(); di = new SharpDX.DirectInput.DirectInput(); _subsysKeyboard = new Subsystem_Input_Keyboard(di); _subsysMouse = new Subsystem_Input_Mouse(di); }
protected override void Cleanup() { _subsysKeyboard?.Dispose(); _subsysKeyboard = null; _subsysMouse?.Dispose(); _subsysMouse = null; di?.Dispose(); di = null; base.Cleanup(); }