You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 19, 2025. It is now read-only.
It is the Test3.scene and modify the GyroRotate.cs to the following to separate left and right joycon:
usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.InputSystem.Switch;publicclassGyroRotateL:MonoBehaviour{// Start is called before the first frame updatevoidStart(){}// Update is called once per framevoidUpdate(){if(SwitchJoyConLHID.current.buttonSouth.wasPressedThisFrame){// SwitchControllerHID.current.ReadIMUCalibrationData();SwitchJoyConLHID.current.SetIMUEnabled(true);}transform.eulerAngles=SwitchJoyConLHID.current.orientation.ReadValue()*0.1f;}}
usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.InputSystem.Switch;publicclassGyroRotateR:MonoBehaviour{// Start is called before the first frame updatevoidStart(){}// Update is called once per framevoidUpdate(){if(SwitchJoyConRHID.current.buttonSouth.wasPressedThisFrame){// SwitchControllerHID.current.ReadIMUCalibrationData();SwitchJoyConRHID.current.SetIMUEnabled(true);}transform.eulerAngles=SwitchJoyConRHID.current.orientation.ReadValue()*0.1f;}}