Beispiel #1
0
 private void ShowFeedback(ushort value, SetUshortOutputArrayDelegate localDelegate, SetUshortOutputDelegate hxlDelegate)
 {
     localDelegate(Output, value);
     if (Output == HxlPlus.SelectedAudioSettings)
     {
         hxlDelegate(value);
     }
 }
Beispiel #2
0
        protected void ParseMatrix(string response, SetUshortOutputArrayDelegate splusOutputArray)
        {
            var json   = JObject.Parse(response);
            var matrix = json["matrix"] as JArray;

            if (matrix == null)
            {
                ErrorMessage.Warn("HxlPlus.{0}.Poll() HxlPlus did not return a 'matrix' object in response to {0}", GetType().Name, GetUrl);
                return;
            }
            for (ushort i = 1; i <= OutputCount; i++)
            {
                splusOutputArray(i, (ushort)(matrix[i - 1].Value <int>() + 1));
            }
        }
Beispiel #3
0
 private void ShowFeedback(bool value, SetUshortOutputArrayDelegate localDelegate, SetUshortOutputDelegate hxlDelegate)
 {
     ShowFeedback(value.ToUshort(), localDelegate, hxlDelegate);
 }
Beispiel #4
0
 public BoolOutputArrayIndexer(SetUshortOutputArrayDelegate setAction)
 {
     this.setAction = setAction;
 }