Repository navigation
Switch: one sideways Joy-Con per player, with its own tilt and shake - #22
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
the button mapping is really good, and motion controls work as expected i tested it on my switch in a grand prix with the sideways left joycon, and one issue, i cant open DriftDroid settings with a sideways joycon, clicking both sticks does not open the settings menu. i was thinking we could make holding plus, or minus on the joycons open the quick settings menu(which can be used to access the full settings menu), but one quick tap is just pause like normal. / infact, i am going to try that right now. |
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.
On Switch, a single Joy-Con held sideways can't be used as its own player, so split screen with one Joy-Con each (as in Mario Kart 8, or the Wii Remote held sideways in the original game) doesn't work.
This adds that, all in
aurora-main/lib/switch/input_switch.cpp:enable_single_modeis left off on purpose: in libnx it means a single player and would cap the screen at one.)SDL_sysjoystick.c): left Joy-Con A/B/X/Y = Down/Left/Right/Up, right Joy-Con = X/A/Y/B. SL/SR become ZL/ZR, so they reach the game's L (item) and R (drift) like on Mario Kart 8. The stick click is D-pad Up (trick/wheelie), and the Joy-Con's +/- is Start. The stick is rotated a quarter turn each way to match.Pairs, Pro Controllers and handheld are unchanged: the single-Joy-Con path is only taken when the pad's style is JoyLeft/JoyRight with no JoyDual/FullKey/Handheld.
Tested on my Switch (Atmosphère, firmware 23.0.1, build from source): split screen with one sideways Joy-Con per player, including tilt steering.
🤖 Generated with Claude Code