[3.3.0-beta.1] Menu button not recognized
complete
Shiro K
Input.GetButtonDown("Oculus_CrossPlatform_Button4") is not recognized anymore (Left menu button on Vive).
Log In
StormRel
complete
This post was marked as
available in future release
Tom Leylan
Re: SecondaryThumbstick below (but PrimaryThumbstick in my case) it does eventually recognize that it was pressed but it can take anywhere from 1 to over 100 clicks before it is recognized.
I thought it stopped working completely but now I press and press until my pop-up eventually appears/disappears.
_Not my place to speculate but_ ... could it be related to some internal check of the position as well as the click event? Like it would register the click if completely vertical which I assume it rarely is?
LiveDimensions
This seems to be the case with other buttons as well, in my case "Oculus_CrossPlatform_SecondaryThumbstick" also has this behavior where GetButtonDown does not work.
This is now in the live version of VRChat (1373)
StormRel
tracked
Shiro K
Some more context after debugging:
Input.GetButtonDown("Oculus_CrossPlatform_Button4") does not return true when the user presses the left menu button (it does in live client)
Input.GetButton("Oculus_CrossPlatform_Button4") returns true while the button is held (works as expected)
So, this doesn't work anymore:
public void DoStuffWhenPressed() {
if (Input.GetButtonDown("Oculus_CrossPlatform_Button4"))
Debug.Log("LEFT MENU BUTTON PRESSED");
}
As workaround I have to do:
private bool leftMenuButtonPressedPrevious;
public void DoStuffWhenPressed() {
bool pressed = Input.GetButton("Oculus_CrossPlatform_Button4");
bool down = false;
if (pressed && !leftMenuButtonPressedPrevious)
down = true;
leftMenuButtonPressedPrevious = pressed;
if (down)
Debug.Log("LEFT MENU BUTTON PRESSED");
}