Ejemplo n.º 1
0
        public string GetKeyPressForLoggingPurposes(RadioPanelPZ69KnobEmulator radioPanelKey)
        {
            var result = "";

            foreach (var keyBinding in _keyBindings)
            {
                if (keyBinding.OSKeyPress != null && keyBinding.RadioPanelPZ69Key == radioPanelKey.RadioPanelPZ69Knob && keyBinding.WhenTurnedOn == radioPanelKey.IsOn)
                {
                    result = keyBinding.OSKeyPress.GetNonFunctioningVirtualKeyCodesAsString();
                }
            }
            return(result);
        }
Ejemplo n.º 2
0
 private void PZ69KnobChanged(RadioPanelPZ69KnobEmulator radioPanelKey)
 {
     if (!ForwardPanelEvent)
     {
         return;
     }
     foreach (var keyBinding in _keyBindings)
     {
         if (keyBinding.RadioPanelPZ69Key == radioPanelKey.RadioPanelPZ69Knob && keyBinding.WhenTurnedOn == radioPanelKey.IsOn)
         {
             keyBinding.OSKeyPress.Execute();
         }
     }
 }
Ejemplo n.º 3
0
 private void CreateSwitchKeys()
 {
     _radioPanelKnobs = RadioPanelPZ69KnobEmulator.GetRadioPanelKnobs();
 }
Ejemplo n.º 4
0
 private static bool FlagValue(byte[] currentValue, RadioPanelPZ69KnobEmulator radioPanelKey)
 {
     return((currentValue[radioPanelKey.Group] & radioPanelKey.Mask) > 0);
 }