Пример #1
0
        public void movedJoystickAxis(int axis, int value)
        {
            if (axis == 0)
            {
                //pitch
                pitchValue = value;
            }
            else if (axis == 1)
            {
                //roll
                rollValue = value;
            }
            else if (axis == 3)
            {
                //throttle
                throttleValue = value;
            }

            client.ExecuteCommand("NetworkJoystick.SetAxisValue", new CallParameter[]
            {
                new CallParameter
                {
                    Name  = axis.ToString(),
                    Value = value.ToString()
                }
            });
        }
Пример #2
0
 private void enableATCMessagesButton_Click(object sender, RoutedEventArgs e)
 {
     client.ExecuteCommand("Live.EnableATCMessageNotification");
 }