Exemple #1
0
        protected override void Initialize()
        {
            base.Initialize();

            di = new DirectInput();
            _subsysKeyboard = new Subsystem_Input_Keyboard(di);
            _subsysMouse    = new Subsystem_Input_Mouse(di);
        }
Exemple #2
0
        protected override void Cleanup()
        {
            _subsysKeyboard?.Dispose();
            _subsysKeyboard = null;

            _subsysMouse?.Dispose();
            _subsysMouse = null;

            di?.Dispose();
            di = null;

            base.Cleanup();
        }