예제 #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");
 }