private void Device_ModeProfileSelected(object sender, ModeProfileSelectedEventArgs e) { if (!(sender is IHOTASDevice)) { return; } if (e.IsShift) { //don't set state to false if IsShift is false because a mode change could take place after shift button is pressed _isShiftStateActive = true; _previousMode = Mode; } SetMode(e.Mode); }
private void OnModeProfileSelected(object sender, ModeProfileSelectedEventArgs e) { ModeProfileSelected?.Invoke(this, e); }