cancel
Showing results for 
Search instead for 
Did you mean: 

Controller Input on the Go

CidHighwind
Level 2
Hey,
in my app I am using a xbox one controller. I am currently using ovrFrameInput.Input.buttonState to get the pressed buttons. The problem with this methode is that I don't get the left and right shoulder buttons or if the sticks are pressed down. With ovrFrameInput.Input.KeyEvents I can check if the sticks are pressed but not if the left and right triggeres are pressed down. What would be the right methode to check if the shoulder buttons are pressed and get the analoge value?
Thanks.
1 REPLY 1

CidHighwind
Level 2
Hi,

the problem is that RT and LT buttons can't be checked with vrFrame.Input.buttonState.
    /// FIXME: these extra joypad buttons aren't supported yet because the whole input pipeline 
/// (including java) will need to be changed to use a 64-bit flag
/*
BUTTON_C = 1ULL<<31,
BUTTON_Z = 1ULL<<32,
BUTTON_LEFT_SHOULDER = 1ULL<<33,
BUTTON_RIGHT_SHOULDER = 1ULL<<34,
BUTTON_LEFT_THUMB = 1ULL<<35,
BUTTON_RIGHT_THUMB = 1ULL<<36
*/
This is from OVR_Input.h. Will this not get fixed? And what should I use instead of it?

Thanks.