godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.9k stars 3.19k forks source link

Document Oculus Quest controller mappings #5268

Open JamesC01 opened 3 years ago

JamesC01 commented 3 years ago

I'm having a lot of trouble getting stick input from oculus quest controllers. There's a get_joystick_axis method, but I've tried a bunch of different values from JoystickList, and none of them work, and the names don't match up at all with the quest 2 controller. For example, right stick horizontal matches up with with the trigger on the right controller.

edit: It seems that JOY_AXIS_0 is the horizontal axis for the right stick.

Calinou commented 3 years ago

cc @BastiaanOlij

BastiaanOlij commented 3 years ago

Hmm, strange, we have it documented for the other plugins but not for the quest...

It should be:

There should be no difference to the Quest 1 and Quest 2 though I do not have a Quest 2 to test with.

Are you using the Oculus mobile plugin or the OpenXR plugin?

JamesC01 commented 3 years ago

The mobile plugin. I can confirm that the first 3 you listed work on the quest 2.

BastiaanOlij commented 3 years ago

Cool, I think those are the only axis inputs we have, all the other inputs are boolean (buttons)