cancel
Showing results for 
Search instead for 
Did you mean: 

HandedInputSelector.cs not switching Laser to left hand controller on Go

FuzzyOnion
Protege
Not getting laser set to the left hand controller...
I think because of the HandedInputSelector.cs is not setting SetActiveController(OVRInput.Controller.LTouch)
This is the default code that doesn't seem to work:

        if (OVRInput.GetActiveController() == OVRInput.Controller.LTouch)
        {
            SetActiveController(OVRInput.Controller.LTouch);
        }
        else
        {
            SetActiveController(OVRInput.Controller.RTouch);

        }



Is there a different if/then statement to use to check which hand controller is active on the go? 
Trying to figure it out now but any help would be appreciated.
OVR 1.38
1 REPLY 1

FuzzyOnion
Protege
This seems to work...
if (OVRInput.GetActiveController() == OVRInput.Controller.LTrackedRemote)
        {
            SetActiveController(OVRInput.Controller.LTouch);
        }
        else
        {
            SetActiveController(OVRInput.Controller.RTouch);

        }