private static void TestJoystickEvent(JoystickEvent e, ref XRControllerJoystick joystick, XRControllerSide side) { if (e != null && joystick.value.magnitude != 0) { e(side, joystick.value); } }
void PrintJoystick(XRControllerJoystick joystick, string name) { if (joystick.value.magnitude >= .1f) { Debug.Log($"{name} {joystick.value.x}x{joystick.value.y}"); } }
internal void Merge(ref XRControllerJoystick joystick) { if (value.magnitude >= tolerance) { joystick.value = value; } }