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); }
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(); } } }
private void CreateSwitchKeys() { _radioPanelKnobs = RadioPanelPZ69KnobEmulator.GetRadioPanelKnobs(); }
private static bool FlagValue(byte[] currentValue, RadioPanelPZ69KnobEmulator radioPanelKey) { return((currentValue[radioPanelKey.Group] & radioPanelKey.Mask) > 0); }