Repository navigation
Conversation
The first R36S that ran ZyperOS played Gran Turismo 2 with its sticks doing nothing: Diatom gave every core centered sticks, as no handheld it ran had any. Now a port says what its sticks read (diatom_port_input_axes: left X and Y, right X and Y, in libretro's range, the centre and the dead zone taken out), and the core's analog device gets them: the left one whenever the d-pad is not pushing the stick (stick=dpad), the right one always. - port/pixel2.c (and so port/r36s.c): the joypad's ABS_X, ABS_Y, ABS_RX and ABS_RY, with their range and their flat from the kernel, read from its own events; a pad without them (the Pixel 2's) has no sticks, as before. BTN_THUMBL and BTN_THUMBR are L3 and R3. - DIATOM_BTN_L3 and DIATOM_BTN_R3, after MENU so every other bit stays, the RetroPad's L3 and R3. The PlayStation's DualShock turns analog on L3+R3 (its analog_combo), so on the R36S both sticks pressed together turn it on, as the real pad's ANALOG button does. - The Brick and the desktop port have no sticks of their own. The same hook as the TrimUI Smart Pro's work (#244) adds, so either can take the other's.
# Conflicts: # diatom/include/diatom_port.h # diatom/port/brick.c # diatom/port/desktop.c # diatom/src/env.c
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.
The first R36S that ran ZyperOS (Sylver's, 2026-11-23) played Gran Turismo 2 with its sticks doing nothing. This PR stacks on #459, because the R36S's port is there.
#244 (the Smart Pro) has merged with the hook for a handheld's own sticks:
diatom_port_input_axes, andenv.cgiving the cores those sticks. This PR now uses that hook and adds:port/pixel2.c(and soport/r36s.c) reads the joypad's ABS_X, ABS_Y, ABS_RX and ABS_RY from its own events, with the range and the flat from the kernel. A pad without those axes, like the Pixel 2's, reports no sticks, as before. This replaces the Pixel 2 port's "no sticks" stub.DIATOM_BTN_L3andDIATOM_BTN_R3. They come after MENU, so every other button keeps its bit. They reach the core as the RetroPad's L3 and R3. The PlayStation's DualShock turns analog on L3+R3 (ZyperOS sets that combo), so on the R36S both sticks pressed together turn analog on.l3andr3.Checks:
make -C diatom all stub checkpasses. The device ports compile in plastron's build. Not yet tried on an R36S.