Skip to content

Button report, isn't really a bitmask #12

Description

@m-7761
  struct {
    uint8_t unknown:1;
    // Set if the volume up button is pressed.
    uint8_t plus:1;
    // Set if the volume down button is pressed.
    uint8_t minus:1;
    // Set if the mute button is pressed.
    uint8_t mute:1;
  } button;

A lot of this stuff is in the PSVRFramework's source code. As long as there isn't a reason to not plumb it.

But I say from recent experience, that it's misleading to use bitfields here. Because yes, the values are 2, 4, 8 (1 is surely the power button? But possibly it's meaningless) but they are never combined. I think the most recently pressed button is reported, although if not, there is a hierarchy.

BTW: We cannot really use the PSVR for sound on Windows. But I'm curious, if it's even worthwhile, because mine sounds truly awful! It could be the headphones that come with it are inadequate. But I'm wondering, do you guys get good sound out of home-theater mode? Is it possible we are missing something?

(EDITED: For what it's worth, I know about this, because I repurposed the volume buttons for adjusting an IPD setting.)

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions