Forum Discussion
Curtis
11 years agoExplorer
Using the razer hydras start button in Unity
So this question is probably more suited for sixenses forum, but it seems to be a ghost town over there so I hope I have a little more luck here ;) So right now, when you press the start button o...
Curtis
11 years agoExplorer
Ah, thanks for pointing me in the right direction!
To be honest, I kinda just tried this on a whim and it worked. So maybe not the most elegant solution, but I changed line 27 of SixenseHandsController.cs
from:
if ( IsControllerActive( hand.m_controller ) && hand.m_controller.GetButtonDown( SixenseButtons.START ) )
to:
if ( IsControllerActive( hand.m_controller ) && SixenseInput.Controllers[0].GetButtonDown( SixenseButtons.START ) )
So now only the left controller enables position and orientation, and leaves the right controllers start button open.
To be honest, I kinda just tried this on a whim and it worked. So maybe not the most elegant solution, but I changed line 27 of SixenseHandsController.cs
from:
if ( IsControllerActive( hand.m_controller ) && hand.m_controller.GetButtonDown( SixenseButtons.START ) )
to:
if ( IsControllerActive( hand.m_controller ) && SixenseInput.Controllers[0].GetButtonDown( SixenseButtons.START ) )
So now only the left controller enables position and orientation, and leaves the right controllers start button open.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago