10-17-2017 07:50 AM
void Update () {
if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger))
{
r1.material.color = Color.red;
}
if (OVRInput.GetUp(OVRInput.Button.PrimaryIndexTrigger))
{
r1.material.color = Color.white;
}
if (OVRInput.GetDown(OVRInput.Button.PrimaryTouchpad))
{
r2.material.color = Color.red;
}
if (OVRInput.GetUp(OVRInput.Button.PrimaryTouchpad))
{
r2.material.color = Color.white;
}
if (OVRInput.GetDown(OVRInput.Button.Back))
{
r3.material.color = Color.red;
}
if (OVRInput.GetUp(OVRInput.Button.Back))
{
r3.material.color = Color.white;
}
}
The Primary Touchpad and Back button work appropriately when the GetUp and GetDown functions are called, and GetDown works with the Trigger, but GetUp is just not working. I tried this same code in 2017.1 and it works fine.11-20-2017 02:21 AM
12-05-2017 06:38 PM
12-24-2017 05:01 AM
01-23-2018 02:05 PM
02-12-2018 05:52 PM
02-22-2018 02:24 AM
02-23-2018 05:07 AM
jobesu said:
Modifiying the line 310 of OVRInput from:
RawButton rawButtonMask = RawButton.Any & ~RawButton.Back;
to
RawButton rawButtonMask = RawButton.Any; // & ~RawButton.Back;
Seems to fix the bug "back button not responsive if player didn't touch the touchpad first" on Unity 5.6.5p1 with SDK 1.22 and 1.23. No idea about possible side effects of this though.
03-11-2018 06:28 AM
03-11-2018 06:35 AM
chorst2017 said:
lmao 3 months and their input system still doesn't work?!
07-24-2018 05:52 AM