public void Dispose() { if (this._joystick != null) { this._joystick.Unacquire(); this._joystick.Dispose(); this._joystick = null; } this.IsValid = false; }