Every setting of the game's .ini, with its default and what it does: Settings. The launcher's Settings
find one by its words: Ctrl+F, a pad's Y, or the Search row over its groups (GUI).
A gamepad's motion sensors, a Joy-Con's among them, go to the game when SDL exposes them. No setting turns them off.
audout PCM playback and the audio renderer's device sink (audren) use SDL3's system-default output on
Windows, Linux and supported Unix systems. Choose the output in your operating system's sound settings. The
renderer does not render splitters, voice biquad filters, or the delay, reverb and biquad effects yet.
SDL gamepads send A, B, X and Y where the console's are (A right, B bottom, X top, Y left), as emulators do;
gamepad_swap_ab=1 swaps A and B. gamepad_map sets what any control sends, a control by where it sits and the
button it sends, as south:B east:A lt:ZL; the ones it leaves out send the button in their place. The sticks'
dead zone in gamepad_deadzone and the game's vibration as strong as gamepad_rumble (both in percent), and with
gamepad_background=1 still play while the window is not focused; the game's menu (Home, F2) sets them under
Controllers, which names the pads connected; its Player row shows every player's settings (All) or one
player's own Swap A/B, Vibration and Button map. Each connected gamepad uses its own player slot, up to eight.
Keyboard and on-screen controls also drive player one.
gamepad_assign=1, the default, gives the players out as a console does (after Eden's Modern Console): each controller
that connects is the lowest player free ("P2: Xbox Wireless Controller joined"), and one that leaves keeps its player
for 45 seconds, which it takes back when it returns while another that connects goes past it. Once a player's controller
has been gone 3 seconds the game pauses until it returns, or until + is let go on another controller, which goes on
without that player. In a window the pause shows the controllers' dialog (below) with that player's card, where A on
another pad takes its place and Go on without P2 goes on. 0 gives them out as each player's gamepad_p<N>_device
names its controller, the next to connect where it names none.
When the game asks for its controllers (the console's controller applet), a dialog over the game says what the game
expects: how many players, how each one holds its controller (with a picture), and the game's own text and color for
each player. A game of Joy-Con 2 alone that started their mouse sensor gets an optional panel to check the Joy-Con 2 as
a mouse (on the table or in the air, the cursor, R and ZR): the game never says whether it uses the mouse, so the dialog
only says "if". Each player has a card that a controller fills with the console's
gestures, which also choose its style: SL and SR together on one Joy-Con make it a player alone, held sideways (half of
a pair leaves the pair), L on a left Joy-Con and R on a right one held together make them one pair, and L and R
together on a pair or any other pad make it a whole one (a pad plays as whatever style the game takes). A gesture the
game does not take is refused with the reason in the card. A only picks the dialog's items. A console controller (a
Pro Controller, Joy-Cons, a Joy-Con 2 or Pro Controller 2 the runtime connects, a pad in Switch mode) keeps its own
style as on the console: a game that takes none of its styles does not see it, asks for its controllers, and the
dialog says why that one does not fit. A generic pad and the keyboard play as whatever style the game takes. While the TV mode is off,
player 1's card says whether it is the Joy-Cons attached to the console (the handheld controls, which the game also
sees as player 1) or detached. A game that does not take the handheld controls, and the Joy-Con 2 mouse, need them
detached: Detach the Joy-Cons from the console (tabletop) takes the handheld controls away for the session and
leaves the TV mode and the performance mode as they are, and Attach the Joy-Cons to the console brings them back. A line under the cards says who is still missing, Continue goes back to the
game once the least it needs are there, and Cancel tells the game the player backed out. With joycon2=1 the dialog
listens for Joy-Con 2 and Pro Controller 2 while it shows: a known one connects as soon as it is heard, a new one
waiting to sync is connected once picked. Disconnect P2 closes the link of a controller the runtime connected itself
(no command goes to the controller) and leaves player 2 waiting: for a minute the controller is not connected again by
itself, its Connect ... again item takes it back at once, and after that a button press connects it as before. The game's menu opens the same dialog under Controllers > Assign players, the game paused.
controller_applet=1 answers at once when the players are already there.
gamepad_joycon_pair=1 makes SDL combine a left and right Joy-Con. Set it to 0 to expose them separately and
restart the game after changing it.
For a joystick that SDL detects but does not recognize as a gamepad, put SDL mapping lines in
gamecontrollerdb.txt beside the launcher's settings.ini (Folders). A game in the launcher's
recompiled/ reads the same file; any other game, the user's (on Android every game, the launcher's). To use a file
elsewhere, set
SDL_GAMECONTROLLERCONFIG_FILE to its path before starting the launcher or game. A mapping line starts with the
joystick GUID shown in the game log or the launcher's Controllers page, which names the file too, followed by a name
and SDL button and axis bindings. For example:
GUID,My Controller,a:b0,b:b1,x:b2,y:b3,leftx:a0,lefty:a1,rightx:a2,righty:a3,platform:Linux,
Replace GUID and each binding with values for the device, and Linux with Windows, FreeBSD or Android
where it runs: SDL takes a line of the file only with its own platform. This SDL mapping selects physical joystick
controls; gamepad_map instead selects which Switch buttons the mapped controls send. The game log reports every
detected joystick, whether it has an SDL mapping, and any gamepad open error. On Linux, installing
dist/72-scarletnx-input.rules in /etc/udev/rules.d/ grants desktop seat access to joystick event nodes and to
the hidraw nodes of the console's controllers, for Joy-Con features. Reload udev rules and reconnect the controller
after installation. Other HIDAPI controllers may need their vendor's own hidraw rule.
On FreeBSD SDL reads the pads itself, over HIDAPI and libusb (the only way an Xbox pad is read: its own protocol is
not HID) and the usbhid stack's /dev/uhid* nodes. Install games/devd-controller-rules and put your user in the
games group: its devd rules give SDL's libusb the controller's USB device. The libusb package must be installed,
which SDL loads when HIDAPI starts. A pad a driver has claimed — xb360gp(4), hgame(4) or webcamd, which hand it
out as /dev/input/event* and /dev/input/js* — sits where SDL cannot read it: stop that driver and reconnect the
pad.
| Keyboard | Switch |
|---|---|
| Arrows; WASD / IJKL | D-pad; L/R sticks |
| X or Space / Z / C / V | A / B / X / Y |
| Q / E / 1 / 3 | L / R / ZL / ZR |
| Enter / Backspace | Plus / Minus |
F1 a page of the game's menu with these keys and the buttons above, a row each in focus as the menu's rows are, where
the focus is among them under them (2 / 27): Enter on a key of the runtime's waits for its new key on the
Shortcuts page, on its row; the game's buttons, in the soft colour, take nothing; ESC, F1 again, or a key or a
button of no use there goes back to the game; F2 the game's menu; F3 screenshot; F4 FPS limit off and on; F5 thread dump; F6 showcase on and off;
F7 save state; F8 load state; F9 next save state slot; F10 Tracy capture for tracy_capture_seconds (60 s by
default, SNX_TRACY builds); F11/Alt+Enter fullscreen; F12 stats on and off; Ctrl+Shift+F12 a RenderDoc capture of the
next frame, with RenderDoc in the game (renderdoc, or a game RenderDoc's program started), as the game's menu's
Capture frame is, which shows only then;
Pause pauses the whole game and resumes it (the window's title says "(paused)"); Escape twice within 3 seconds quit, the
first press a warning over the game; Ctrl+D the TV mode On, Off or Auto for the run, as the game's menu's TV mode
is. F4, F6, F12, Ctrl+D and Pause say over the game what the press set (FPS limit: off, Stats: on), the log
what it was too (FPS limit: off (was the game's pace)). What shows over the game is a line each, the oldest at the
top, four at most, each going after 3 seconds; the next press of the same key, or the next word on a save state,
takes its line where it is. A line starts with an icon the launcher shows for the same thing: a setting's group in its
Settings (Performance's gauge for the FPS limit, Display's screen for stats), a key's row on F1's page (a
screenshot's picture), the save icon for save states, and Controllers' gamepad for a controller joining or leaving.
Each of these keys is a setting
(Shortcuts), set in the game's menu's Shortcuts page too, and F1 lists them as they are
set. A window shows at most one image per refresh and drops the rest unless images
tear, and the game keeps the pace fps_limit sets.
A save state is the whole game at one moment, kept in states/ in the game's folder, one file a slot. F7 saves to
the selected slot and F8 loads it, and F9 selects the next slot and says what it holds. The menu's Save states
page lists the slots with the date, the play time and a picture of each, and saves, loads and deletes them. A load,
a delete and a save over a state ask first (F7 does not: it saves at once, saying Saved over slot 2 when the
slot held one); Delete and that Save are in the failure colour, Load in the warning colour, and the menu's Exit,
which ends the game, in the failure colour and asked first. The game waits while the page is open. Its last rows,
Record input and Play input, record player 1's buttons into a slot and play them back: Left and Right choose
the slot, shown as a list's value (< Slot 3 >), and Enter takes it, a recording over another asked first. Before a load the game is saved to the auto slot,
listed first, so a load can be undone (state_auto_backup). The game's own save files are never part of a state,
and loading one leaves them as they are: a GBA cartridge's or a DS card's save memory too, the game's <name>.sav. A state loads only into the game, update and mods it was saved with. A newer
ScarletNX loads it too, unless it changed the recompiled code (SNX_ABI) or the layout of what a state holds, and
then it says so. A save is refused, saying why, while the game holds what a state can't keep yet: a network
connection, local play with others, code modules it loaded, or NVN work waiting on the GPU.
In the launcher, S on Games lists the save states of the game in focus, the newest first, with the picture of the one
in focus beside them. Enter plays the game from that state, and Del deletes it after asking. A state this version
can't load is shown in the failure colour, and Enter on it says why. --state-load=0:FILE plays a game from the
state FILE the same way.
Made from docs/user/usage.md at 69237645142c. GPL-3.0-or-later.