Example #1
0
    void GetAxis()
    {
        hAxis = Input.GetAxis("Horizontal"); //get horizontal axis input
        vAxis = Input.GetAxis("Vertical");   //get vertical axis input

        _tel.Axis(vAxis, hAxis);             //send axis data to telemetry

        /*
         * //clamp x rotation to -85/85 degrees
         * if (transform.rotation.x > -85 && transform.rotation.x < 85)
         *  vAxis = Input.GetAxis("Vertical");
         * else
         *  vAxis = 0;
         */
    }