public static bool GetMenuButtonUp(InputDevice device) { var value = XRInputDevicesUsage.GetMenuButton(device); if (!value && _previousGripButton) { _previousGripButton = false; return(true); } return(false); }
public static bool GetMenuButtonDown(InputDevice device) { var value = XRInputDevicesUsage.GetMenuButton(device); if (value && !_previousMenuButton) { _previousMenuButton = true; return(true); } return(false); }