Skip to content

Document Oculus Quest controller mappings #5268

@JamesC01

Description

@JamesC01
Contributor

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.

Activity

Calinou

Calinou commented on Sep 19, 2021

@Calinou
Member
BastiaanOlij

BastiaanOlij commented on Sep 19, 2021

@BastiaanOlij
Contributor

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

It should be:

  • JOY_AXIS_0 horizontal on joystick
  • JOY_AXIS_1 vertical on joystick
  • JOY_AXIS_2 trigger
  • and I think JOY_AXIS_3 for the grip button, it's JOY_AXIS_4 in other plugins but I remember there being a mixup for Quest and we stuck with it.

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

JamesC01 commented on Sep 19, 2021

@JamesC01
ContributorAuthor

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

BastiaanOlij

BastiaanOlij commented on Sep 20, 2021

@BastiaanOlij
Contributor

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

added
topic:xrRelated to XR documentation
area:manualIssues and PRs related to the Manual/Tutorials section of the documentation
on Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:manualIssues and PRs related to the Manual/Tutorials section of the documentationenhancementtopic:xrRelated to XR documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Calinou@BastiaanOlij@skyace65@JamesC01

        Issue actions

          Document Oculus Quest controller mappings · Issue #5268 · godotengine/godot-docs