private void Keyboard_RotaryValueChanged(object sender, KeyboardRotaryEventArgs e) { var msg = new RotaryActionMessage() { RotaryIndex = e.RotaryIndex, RotaryOffset = e.RotaryOffset }; BasicPublish(RoutingAddressMap.RotaryActionRoutingKey, msg); }
private static async void Keyboard_RotaryValueChanged(object sender, KeyboardRotaryEventArgs e) { rotaries[e.RotaryIndex] += e.RotaryOffset; Console.WriteLine($"Rotary action - index {e.RotaryIndex} offset by {e.RotaryOffset}"); await UpdateStatisticsButtons(); }