protected override void Initialize() { if (_joyInfo.IsXInput) { Enumerate(); } else { JoystickState.Axis.Clear(); this._joystick = new SharpDX.DirectInput.Joystick(this._directInput, this._deviceGuid); this._window = ((DirectXInputManager)Creator).WindowHandle; this._joystick.SetCooperativeLevel(this._window, this._coopSettings); if (IsBuffered) { this._joystick.Properties.BufferSize = BufferSize; } //Enumerate all axes/buttons/sliders/etc before aquiring Enumerate(); JoystickState.Clear(); Capture(); } }