Example #1
0
        /// <summary>
        /// Asyncronous method that handles all the input from the analog stick
        /// </summary>
        /// <returns></returns>
        private IEnumerator Analog()
        {
            while (true)
            {
                //Get the X and Y values from the joystick
                double analogVertical   = VRPN.vrpnAnalog(trackerAddress, channelVertical);
                double analogHorizontal = VRPN.vrpnAnalog(trackerAddress, channelHorizontal);

                //Translate the holder
                toolManager.handleAnalog(analogHorizontal, analogVertical);
                yield return(null);
            }
        }