Skip to content

feat(pico4-monado): the right controller's Capture button takes a screenshot - #42

Merged
Xenolphthalein merged 1 commit into
overpressure:mainfrom
linuxnoodle:pico4-capture-button
Nov 24, 2026
Merged

Xenolphthalein merged 1 commit into
overpressure:mainfrom
linuxnoodle:pico4-capture-button

Conversation

@linuxnoodle

Copy link
Copy Markdown
Contributor

pico4-monado: the right controller's Capture button takes a screenshot

What

The right controller's Capture button did nothing. The driver has registered /input/menu/click on both controllers since #41 (each controller's MENU input: the left controller's menu button, the right controller's Capture button), but the input profile leaves it out, and SteamVR refuses a binding on a component the profile does not declare: at every start vrserver.txt says Invalid input type button::click for path (/user/hand/right/input/menu).

  • The input profile declares /input/menu for the right hand only.
  • The compositor's bindings give its click the dashboard's TakeScreenshot.

The left controller's menu button stays on /input/system, which toggles the dashboard. pkgrel=22.

Details

  • Why the right hand only. On the left controller /input/menu is the same button as /input/system, so declaring it there would add a second path to a button that has one.
  • The chord stays. The bindings already carry a chord for the same action: the PICO button held and the trigger clicked. It cannot take the screenshot here. Holding the PICO button for a second recenters the view (the quick-recenter binding takes the held button), and SteamVR logs Unbound input (/user/hand/right/input/trigger,click) for chord, ignoring chord for it at every start. It is left as it is; say if it should go.

Verified

  • Worn on a PICO 4 with this on top of 2026.11.26: SteamVR accepts the binding at every start (its check of /user/hand/right/input/menu is no longer followed by Invalid input type), and a press on the Capture button writes the screenshot and its stereo pair to userdata/<id>/760/remote/250820/screenshots/.
  • The repository's tests, build/versions.py check, build/shellcheck.py, ruff and ty pass.

…eenshot

The driver registers /input/menu/click on both controllers since overpressure#41 (each
controller's MENU input: the left controller's menu button, the right
controller's Capture button), but the input profile leaves it out, so SteamVR
refuses a binding on it (vrserver.txt: "Invalid input type button::click for
path (/user/hand/right/input/menu)") and the Capture button does nothing.

Declare /input/menu for the right hand only and bind its click to the
dashboard's TakeScreenshot in the compositor's bindings. The left controller's
menu button stays on /input/system, which toggles the dashboard.

The chord that the bindings already carry, the PICO button held and the
trigger clicked, cannot take the screenshot: holding the PICO button for a
second recenters the view, and SteamVR logs "Unbound input
(/user/hand/right/input/trigger,click) for chord, ignoring chord" for it at
every start. It is left as it is.

Seen on a PICO 4 with 2026.11.26, worn: SteamVR accepts the binding at every
start, and a press on the Capture button writes the screenshot and its stereo
pair to Steam's userdata/<id>/760/remote/250820/screenshots/.

@Xenolphthalein Xenolphthalein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this fits: on the right controller /input/menu is the Capture button, a button of its own, so the profile still lists each physical button once (the left one's menu button stays on /input/system only, as #41 settled), and a press taking a screenshot is what the Capture button does on PICO OS. CI is green.

On the chord: leave it out of this one. It can never fire while the held PICO button recenters, so it can go in a follow-up that also removes its warning at every start.

@Xenolphthalein
Xenolphthalein merged commit 408f2ac into overpressure:main Nov 24, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants