/// <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); }
/// <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); }