Skip to content

Launcher: the R36S's left stick as the d-pad, and L3/R3 - #473

Draft
tarikbc wants to merge 1 commit into
r36s-sticksfrom
r36s-ossticks
Draft

tarikbc wants to merge 1 commit into
r36s-sticksfrom
r36s-ossticks

Conversation

@tarikbc

@tarikbc tarikbc commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Sylver reported both sticks dead in the launcher too: "Support for both analog sticks (in OS and in games); L3/R3 for when pressing on stick". #465 covers games. This PR covers the launcher and stacks on #465.

  • The left stick moves as the d-pad on every screen. It uses main's src/stickpad.c, the Smart Pro's rule from Smart Pro kit 2b: firmware facts, profile, pad reader, sticks, board and image plumbing #244: a direction is held from half the way and let go under a third, along the further axis, so a diagonal counts as the larger one. It repeats as the d-pad does, because it is the same button held.
  • No drift. The axes come from the kernel with their range and their flat. The new stickpad_centred puts the middle at 0 and takes out the device tree's dead zone, so a stick that drifts at rest holds nothing. check-stickpad covers it, and does not build without it.
  • The Pixel 2 does not change. Its pad has no axes, so none of this runs there.
  • The right stick does nothing in the launcher. L1 and R1 already page, and a thumb resting on it under A B X Y would move the cursor.
  • L3 and R3 are launcher buttons. IN_L3 and IN_R3 come after R2, so every other number stays the same. The R36S prints them as its sticks (DEV_CAP_STICK).
  • MENU > Controls: its Moving page draws the left stick beside the d-pad on the R36S, set by a new dev_chords.stick_dpad.
  • The tutorial: the Move lesson lights the left stick with the d-pad. A stick pressed in a lesson is answered by name ("That's L3. Try A.").
  • The drawn R36S: its model has the two stick caps as keys, so its drawing can light them. The flat drawing keeps them as plain sticks, not keys.

Not in this PR: remapping L3 and R3 in a game's Controls tab. The remap choices come from each system's pad table, which has no L3 or R3 slot yet. In a game, L3 and R3 reach the core unchanged (#465).

Checks: the Pixel 2's and the Brick's 96 shots each (tutorial at three times, Controls tab rows, Controls pages, both themes) are the same pixels as before. check-stickpad, tour, tour-shots, controls, controls-shots, menus, devices, model, handhelds, simulator, desk, keymap, strings and devicegen all pass. I looked at the R36S's Move lesson, a wrong press with L3, and the Controls Moving page in both themes.

The first tester's R36S had both sticks dead in the launcher too. Now:

- The left stick moves as the d-pad does on every screen
  (src/device/pixel2.c with main's src/stickpad.c, the Smart Pro's rule):
  a direction held from half the way and let go under a third, along the
  further axis, so a diagonal is the larger one, and repeating as the
  d-pad's does, since it is the same button held. The axes come from the
  kernel with their range and their flat (stickpad_centred: the middle
  0, the device tree's dead zone taken out, so a stick drifting at rest
  inside it holds nothing; check-stickpad holds it). A pad with no axes,
  the Pixel 2's, has none of this.
- The right stick moves nothing in the launcher: L1 and R1 already page,
  and a thumb resting on it under A B X Y would move the cursor.
- L3 and R3 are buttons the launcher knows (IN_L3, IN_R3, after R2, so
  every other number stands): the R36S prints them as its sticks
  (DEV_CAP_STICK), MENU > Controls draws the left stick beside the d-pad
  on its Moving page (dev_chords' stick_dpad), the tutorial's Move lesson
  lights it with the d-pad, and a stick pressed there is answered by name
  ("That's L3. Try A."). The R36S's model has the two caps as keys, so its
  drawing lights them; its flat drawing keeps them as its sticks.

The Pixel 2's and the Brick's 96 tutorial, Controls tab and Controls page
shots each are the same pixels as before. In a game, L3 and R3 reach the
core as themselves (#465); remapping them waits for L3 and R3 slots in the
systems' pad tables.

This branch has not been deployed

No deployments
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