public override void Dispose() { if (_virtualJoystickAcquired) { _virtualJoystick?.RelinquishVJD(Convert.ToUInt32(settings.vJoyDeviceId)); } }
private void ReleaseJoystick() { if (settings.vJoyDeviceId != "") { _virtualJoystick.RelinquishVJD(Convert.ToUInt32(settings.vJoyDeviceId)); } }
private void OnDisposed(object sender, EventArgs e) { try { m_Interface.RelinquishVJD(m_Id); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
internal void ApplySettings() { if (settings.vJoyDeviceId != "") { uint updatedDeviceId = Convert.ToUInt32(settings.vJoyDeviceId); if (updatedDeviceId != vJoyDeviceId) { joystick.RelinquishVJD(vJoyDeviceId); vJoyDeviceId = updatedDeviceId; joystick.AcquireVJD(vJoyDeviceId); } vJoyButtonIds = Array.ConvertAll(RemoveExtraText(settings.vJoyButtonIds).Split(comma, StringSplitOptions.RemoveEmptyEntries), Convert.ToUInt32); Connection.SetSettingsAsync(JObject.FromObject(settings)); } }
public void Close() { Vjoy.ResetVJD(_vJoyNumber); Vjoy.RelinquishVJD(_vJoyNumber); }
public override void Dispose() { joystick?.RelinquishVJD(vJoyDeviceId); }