Forum Discussion
yeilam
11 years agoHonored Guest
GetGamepadState does not work for me
Hi,
I'm integrating OculusSDK.
I'm now integrating only the "gamepad" (input) and not the rendering.
Initialization is:
That works fine and I get a seems-legal descriptor.
Later I call:
But I always get l_rc==1167 and constant looks-like-garbage state.
Could you help?
I'm integrating OculusSDK.
I'm now integrating only the "gamepad" (input) and not the rendering.
Initialization is:
ovr_Initialize();
ovrHmd l_Hmd = ovrHmd_Create(0);
ovrHmdDesc l_HmdDesc ;
ovrHmd_GetDesc(l_Hmd, &l_HmdDesc);
That works fine and I get a seems-legal descriptor.
Later I call:
XINPUT_STATE xis;
int l_rc = XInputGetState(0, &xis);
if (l_rc == ERROR_SUCCESS )
Log("Controller connrected");
But I always get l_rc==1167 and constant looks-like-garbage state.
Could you help?
3 Replies
- 1167 is ERROR_DEVICE_NOT_CONNECTED.
Is the 360 controller working with other software? How about in the windows game controllers properties? - yeilamHonored GuestThanks for the hints.
1167 is ERROR_DEVICE_NOT_CONNECTED.
Is the 360 controller working with other software?
Yes. I can run OculusWorldDemo.exe, it works.
How about in the windows game controllers properties?
Is it the "Set up USB game controllers"?
There are no controllers listed there.
Should they?
I could not find anything in the OculusWorldDemo code besides:
XInputGetState(0, &xis);
Is there something else?
Thanks. "yeilam" wrote:
Is it the "Set up USB game controllers"?
There are no controllers listed there.
Should they?
Yep, that's the one.
It should look like this:
You might need to install the drivers manually if it hasn't auto detected it.
http://www.microsoft.com/hardware/en-au/d/xbox-360-controller-for-windows
I think XP needed manual drivers, while win 7 and above come with them. (At least I remember 6 or more years ago needing to install 360 drivers for my students whenever they moved to a different computer)
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
- 1 month ago
- 3 years ago
- 2 years ago