private static async void Keyboard_JoystickValueChanged(object sender, KeyboardJoystickEventArgs e) { joyX = e.X; joyY = e.Y; joyZ = e.Z; Console.WriteLine($"Joystick action - X={e.X}\tY={e.Y}\tZ={e.Z}"); await UpdateStatisticsButtons(); }
private void Keyboard_JoystickValueChanged(object sender, KeyboardJoystickEventArgs e) { var msg = new JoystickActionMessage() { X = e.X, Y = e.Y, Z = e.Z }; BasicPublish(RoutingAddressMap.JoystickActionRoutingKey, msg); }