Skip to content

fix(controller): click of the right stick reaches Cursor mode - #90

Merged
lippdev merged 1 commit into
mainfrom
capy/show-the-keyboard-over
Oct 21, 2026
Merged

lippdev merged 1 commit into
mainfrom
capy/show-the-keyboard-over

Conversation

@lippdev

@lippdev lippdev commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Cursor mode could not be reached from a controller at all: the shell's button map put RightStick on 10, which is the left stick's click, so pressing R3 toggled nothing.

shared/controllerInput.ts already has the correct table (RightStick: 11), and the preload uses it. The shell kept a second copy in gamepad.ts, and that is the one that had drifted. The map now comes from the shared table, so the two cannot disagree again.

The toolbar hints also name the button (R3 cursor). It is the only route into the mode and has no counterpart visible in the UI, so without the hint the mode is undiscoverable.

File Change
renderer/shell/gamepad.ts import Button from shared/controllerInput instead of a local copy
shared/controllerGlyphs.ts stick glyph per controller family, all R3
renderer/shell/app.tsx R3 cursor in the controller hints
tests/e2e/controller.spec.ts the left stick's click leaves the mode alone, R3 turns Cursor mode on, and the stick then moves the pointer
tests/unit/services.test.ts the glyph table carries stick

The keyboard/overlay half of the original change is not here: main covered it in #94 with the page snapshot approach (page-cover), which supersedes the viewport insets this branch started with.

Verified on main + this commit: npm run typecheck, npm test (102), npm run build, and the full Playwright suite under xvfb-run (49 passed, 2 skipped).

@lippdev
lippdev force-pushed the capy/show-the-keyboard-over branch from f0312ac to 26d3145 Compare October 21, 2026 17:28
The shell's button map had RightStick on 10, which is the left stick's
click: pressing R3 toggled nothing and Cursor mode stayed unreachable by
the only button that offers it. The map now comes from the shared table
in controllerInput.ts, where RightStick is 11, instead of a second copy
that could drift from it.

The toolbar hints also name the button (`R3 cursor`), so the one control
with no visible counterpart in the UI is discoverable.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@lippdev
lippdev force-pushed the capy/show-the-keyboard-over branch from 26d3145 to f02d0d9 Compare October 21, 2026 17:34
@capy-ai capy-ai Bot changed the title fix(shell): show the keyboard over the page and reach Cursor mode from R3 fix(controller): click of the right stick reaches Cursor mode Oct 21, 2026
@lippdev
lippdev merged commit a36905c into main Oct 21, 2026
5 checks passed
@lippdev
lippdev deleted the capy/show-the-keyboard-over branch October 21, 2026 19:27
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.

1 participant