Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion TriquetraInput2/ControllerAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,12 @@ public static void Thumbstick(Binding binding, int joystickValue)

internal static VRJoystick FindJoystick()
{
return GameObject.FindObjectOfType<VRJoystick>(false);
var joysticks = GameObject.FindObjectsOfType<VRJoystick>(false);

var joystick = joysticks.FirstOrDefault(stick => stick.name == "joyInteractable_sideFront") ??
joysticks.FirstOrDefault();

return joystick;
}

private static bool menuButtonPressed = false;
Expand Down