diff --git a/Runtime/HumanoidFree/Scripts/Extensions/UnityXR/UnityXRHand.cs b/Runtime/HumanoidFree/Scripts/Extensions/UnityXR/UnityXRHand.cs index 06fb91b..7671fd9 100644 --- a/Runtime/HumanoidFree/Scripts/Extensions/UnityXR/UnityXRHand.cs +++ b/Runtime/HumanoidFree/Scripts/Extensions/UnityXR/UnityXRHand.cs @@ -140,17 +140,17 @@ namespace Passer.Humanoid { controllerInputSide.stickButton |= (controller.primaryAxis.z > 0.5F); controllerInputSide.stickTouch |= (controller.primaryAxis.z > -0.5F); - controllerInputSide.touchpadHorizontal = controller.secondaryAxis.x; - controllerInputSide.touchpadVertical = controller.secondaryAxis.y; + controllerInputSide.touchpadHorizontal += controller.secondaryAxis.x; + controllerInputSide.touchpadVertical += controller.secondaryAxis.y; controllerInputSide.touchpadPress |= (controller.secondaryAxis.z > 0.5F); controllerInputSide.touchpadTouch |= (controller.secondaryAxis.z > -0.5F); controllerInputSide.buttons[0] |= (controller.button1 > 0.5F); controllerInputSide.buttons[1] |= (controller.button2 > 0.5F); - controllerInputSide.trigger1 = controller.trigger1; - controllerInputSide.trigger2 = controller.trigger2; - controllerInputSide.option = controller.option > 0; + controllerInputSide.trigger1 += controller.trigger1; + controllerInputSide.trigger2 += controller.trigger2; + controllerInputSide.option |= controller.option > 0; } // arm model for 3DOF tracking: position is calculated from rotation