コード例 #1
0
        public string GetKeyPressForLoggingPurposes(MultiPanelKnob multiPanelKnob)
        {
            var result = "";

            foreach (var knobBinding in _knobBindings)
            {
                if (knobBinding.OSKeyPress != null && knobBinding.MultiPanelPZ70Knob == multiPanelKnob.MultiPanelPZ70Knob && knobBinding.WhenTurnedOn == multiPanelKnob.IsOn)
                {
                    result = knobBinding.OSKeyPress.GetNonFunctioningVirtualKeyCodesAsString();
                }
            }
            return(result);
        }
コード例 #2
0
 private static bool FlagValue(byte[] currentValue, MultiPanelKnob multiPanelKnob)
 {
     return((currentValue[multiPanelKnob.Group] & multiPanelKnob.Mask) > 0);
 }
コード例 #3
0
 private void CreateMultiKnobs()
 {
     _multiPanelKnobs = MultiPanelKnob.GetMultiPanelKnobs();
 }