Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left joycon is laggy #4

Open
raytsang opened this issue Apr 30, 2024 · 3 comments
Open

Left joycon is laggy #4

raytsang opened this issue Apr 30, 2024 · 3 comments

Comments

@raytsang
Copy link

raytsang commented Apr 30, 2024

WhatsApp.2024-04-3016.43.37_08a4eef5.mp4

It is the Test3.scene and modify the GyroRotate.cs to the following to separate left and right joycon:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem.Switch;

public class GyroRotateL : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if (SwitchJoyConLHID.current.buttonSouth.wasPressedThisFrame)
        {
            // SwitchControllerHID.current.ReadIMUCalibrationData();
            SwitchJoyConLHID.current.SetIMUEnabled(true);
        }
        transform.eulerAngles = SwitchJoyConLHID.current.orientation.ReadValue() * 0.1f;
    }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem.Switch;

public class GyroRotateR : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if (SwitchJoyConRHID.current.buttonSouth.wasPressedThisFrame)
        {
            // SwitchControllerHID.current.ReadIMUCalibrationData();
            SwitchJoyConRHID.current.SetIMUEnabled(true);
        }
        transform.eulerAngles = SwitchJoyConRHID.current.orientation.ReadValue() * 0.1f;
    }
}
@Meorge
Copy link
Owner

Meorge commented Apr 30, 2024

Thanks for submitting this! I remember the gyro support was one of the later things I did on the project, and it was experiencing more issues than some of the other, simpler inputs.

Unfortunately at the moment I'm not working a lot with Unity or this package, but sometime soon I may be able to take a look at it. It may be worth taking a look at this fork which is being more actively maintained.

@raytsang
Copy link
Author

raytsang commented Apr 30, 2024 via email

@rileywrites
Copy link

i have the same issue, but not just with gyro!! one joycon has much higher input latency than the other, with *all* inputs fairly delayed compared to the second.

for me, the right Joy-Con is much laggier than the left Joy-Con. it's inconsistent, though—sometimes the latency goes away entirely after re-connecting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants