コード例 #1
0
        /// <summary>
        /// Creates a new input device handler instance for a specific device.
        /// </summary>
        /// <param name="deviceName">the device to attach to</param>
        /// <param name="channelName">the channel to attach to</param>
        /// <param name="inputManagerProxy">name of the channel from the Unity input manager to simulate the device (optional)</param>
        ///
        public InputDeviceHandler(string deviceName, string channelName, string inputManagerProxy = "")
        {
            this.deviceName  = deviceName;
            this.channelName = channelName;
            this.proxyName   = inputManagerProxy;

            MoCapClient.GetInstance().AddDeviceListener(this);
        }
コード例 #2
0
        /// <summary>
        /// Called at the beginning of the program execution.
        /// </summary>
        ///
        void Start()
        {
            // initialise variables
            rootNode        = null;
            controllingBone = null;
            dataBuffers     = new Dictionary <Bone, MoCapDataBuffer>();

            MoCapClient.GetInstance().AddActorListener(this);
        }