/// <inheritdoc  cref="OpenXRDevice"/>
            protected override void FinishSetup()
            {
                base.FinishSetup();
                system            = GetChildControl <ButtonControl>("system");
                systemTouched     = GetChildControl <ButtonControl>("systemTouched");
                primaryButton     = GetChildControl <ButtonControl>("primaryButton");
                primaryTouched    = GetChildControl <ButtonControl>("primaryTouched");
                secondaryButton   = GetChildControl <ButtonControl>("secondaryButton");
                secondaryTouched  = GetChildControl <ButtonControl>("secondaryTouched");
                grip              = GetChildControl <AxisControl>("grip");
                gripPressed       = GetChildControl <ButtonControl>("gripPressed");
                gripForce         = GetChildControl <AxisControl>("gripForce");
                trigger           = GetChildControl <AxisControl>("trigger");
                triggerPressed    = GetChildControl <ButtonControl>("triggerPressed");
                triggerTouched    = GetChildControl <ButtonControl>("triggerTouched");
                thumbstick        = GetChildControl <Vector2Control>("thumbstick");
                thumbstickClicked = GetChildControl <ButtonControl>("thumbstickClicked");
                thumbstickTouched = GetChildControl <ButtonControl>("thumbstickTouched");
                trackpad          = GetChildControl <Vector2Control>("trackpad");
                trackpadTouched   = GetChildControl <ButtonControl>("trackpadTouched");
                trackpadForce     = GetChildControl <AxisControl>("trackpadForce");
                devicePose        = GetChildControl <PoseControl>("devicePose");
                pointer           = GetChildControl <PoseControl>("pointer");

                isTracked       = GetChildControl <ButtonControl>("isTracked");
                trackingState   = GetChildControl <IntegerControl>("trackingState");
                devicePosition  = GetChildControl <Vector3Control>("devicePosition");
                deviceRotation  = GetChildControl <QuaternionControl>("deviceRotation");
                pointerPosition = GetChildControl <Vector3Control>("pointerPosition");
                pointerRotation = GetChildControl <QuaternionControl>("pointerRotation");

                haptic = GetChildControl <HapticControl>("haptic");
            }
            /// <summary>
            /// Internal call used to assign controls to the the correct element.
            /// </summary>
            protected override void FinishSetup()
            {
                base.FinishSetup();
                joystick        = GetChildControl <Vector2Control>("joystick");
                trigger         = GetChildControl <AxisControl>("trigger");
                touchpad        = GetChildControl <Vector2Control>("touchpad");
                grip            = GetChildControl <AxisControl>("grip");
                gripPressed     = GetChildControl <ButtonControl>("gripPressed");
                menu            = GetChildControl <ButtonControl>("menu");
                joystickClicked = GetChildControl <ButtonControl>("joystickClicked");
                triggerPressed  = GetChildControl <ButtonControl>("triggerPressed");
                touchpadClicked = GetChildControl <ButtonControl>("touchpadClicked");
                touchpadTouched = GetChildControl <ButtonControl>("touchPadTouched");
                devicePose      = GetChildControl <PoseControl>("devicePose");
                pointer         = GetChildControl <PoseControl>("pointer");

                isTracked       = GetChildControl <ButtonControl>("isTracked");
                trackingState   = GetChildControl <IntegerControl>("trackingState");
                devicePosition  = GetChildControl <Vector3Control>("devicePosition");
                deviceRotation  = GetChildControl <QuaternionControl>("deviceRotation");
                pointerPosition = GetChildControl <Vector3Control>("pointerPosition");
                pointerRotation = GetChildControl <QuaternionControl>("pointerRotation");

                haptic = GetChildControl <HapticControl>("haptic");
            }
Ejemplo n.º 3
0
            protected override void FinishSetup()
            {
                base.FinishSetup();

                trigger        = GetChildControl <AxisControl>("trigger");
                triggerPressed = GetChildControl <ButtonControl>("triggerPressed");
                thumbstick     = GetChildControl <Vector2Control>("thumbstick");

                devicePose     = GetChildControl <PoseControl>("devicePose");
                isTracked      = GetChildControl <ButtonControl>("isTracked");
                trackingState  = GetChildControl <IntegerControl>("trackingState");
                devicePosition = GetChildControl <Vector3Control>("devicePosition");
                deviceRotation = GetChildControl <QuaternionControl>("deviceRotation");

                haptic = GetChildControl <HapticControl>("haptic");
            }
Ejemplo n.º 4
0
            /// <inheritdoc  cref="OpenXRDevice"/>
            protected override void FinishSetup()
            {
                base.FinishSetup();
                menu       = GetChildControl <ButtonControl>("menu");
                select     = GetChildControl <ButtonControl>("select");
                devicePose = GetChildControl <PoseControl>("devicePose");
                pointer    = GetChildControl <PoseControl>("pointer");

                isTracked       = GetChildControl <ButtonControl>("isTracked");
                trackingState   = GetChildControl <IntegerControl>("trackingState");
                devicePosition  = GetChildControl <Vector3Control>("devicePosition");
                deviceRotation  = GetChildControl <QuaternionControl>("deviceRotation");
                pointerPosition = GetChildControl <Vector3Control>("pointerPosition");
                pointerRotation = GetChildControl <QuaternionControl>("pointerRotation");

                haptic = GetChildControl <HapticControl>("haptic");
            }