Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private void OnModeProfileSelected(object sender, ModeProfileSelectedEventArgs e)
 {
     ModeProfileSelected?.Invoke(this, e);
 }