/// <summary>
 ///
 /// </summary>
 public virtual VirtualController ToVirtualController(string fmt)
 {
     return(VirtualController.Instantiate(
                fmt, GetAxisStrings(),
                fmt, GetButtonStrings(),
                string.Format(fmt, GetPoseStrings()[0])
                ));
 }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        public static VirtualController Instantiate(string fmtAxis, string[] axes, string fmtButton, string[] buttons, string poseName)
        {
            VirtualController hj = new VirtualController();

            //(new GameObject("New HandJoystick",
            //typeof(HandJoystick))).GetComponent<HandJoystick>();
            hj.InitInput(fmtAxis, axes, fmtButton, buttons, poseName);
            return(hj);
        }