Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.stickpad_centredputs the middle at 0 and takes out the device tree's dead zone, so a stick that drifts at rest holds nothing.check-stickpadcovers it, and does not build without it.IN_L3andIN_R3come after R2, so every other number stays the same. The R36S prints them as its sticks (DEV_CAP_STICK).dev_chords.stick_dpad.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.