Пример #1
0
        public override void Dispose()
        {
            lock (_sync)
            {
                if (_joystick != null)
                {
                    _joystick.Dispose();
                    _joystick = null;
                }

                if (_directInput != null)
                {
                    _directInput.Dispose();
                    _directInput = null;
                }
            }

            _form.Dispose();
            _timer.Dispose();
        }