| Key | Default | Effect |
|---|---|---|
gamepad_swap_ab | 0 | 1 swaps a gamepad's A and B. 0 sends A, B, X and Y where the console's are. A 3DS game takes it too (the launcher passes it to scarletnx-3ds as --gamepad-swap-ab=1) |
gamepad_map | none | The player's map over that, below. A 3DS game takes it too (--gamepad-map=MAP), Plus as Start and Minus as Select; a control sent to L3 or R3, which the 3DS has none of, sends nothing, and the log says so |
gamepad_deadzone | 20 | The sticks' dead zone, in percent of their travel (0 to 90). A 3DS game takes it too, for its circle pad (--gamepad-deadzone=N) |
gamepad_rumble | 100 | How strongly gamepads vibrate when the game asks, in percent. 0 is never. A Pro Controller or a single Joy-Con plays the game's HD rumble, with its frequencies, when SDL reads it through its HIDAPI driver (the log says "plays HD rumble"). A Pro Controller plays each side on its own actuator, and a single Joy-Con plays each band of the stronger side on its one actuator. Other controllers, two paired Joy-Cons, and a Switch controller that only the kernel driver reads get the strength of the vibration only. The log says why for each of them |
gamepad_background | 0 | 1 keeps gamepads playing while the window is not focused |
gamepad_joycon_pair | 1 | 1 plays a left and right Joy-Con together, 0 separately. Restart the game after changing it |
gamepad_assign | 1 | How controllers take players. 0, manual: as each player's gamepad_p<N>_device names it, the next to connect where it names none. 1, as a console's (Eden's Modern Console): each controller that connects takes the lowest free player, one that leaves keeps its player 45 seconds and takes it back when it returns, the game pauses once a player's controller has been gone 3 seconds (until it returns, or + is let go on another controller to go on without it), and a notice says each controller that joins or leaves, with its player (Playing) |
controller_applet | 0 | What happens when the game asks for its controllers. 0, Dialog: a dialog over the game says what the game expects (how many players, how each one holds its controller, and the game's own text and color for each player), each player takes a controller with the console's gestures (SL+SR on one Joy-Con held sideways, L and R on two Joy-Cons for a pair, L+R on a pad), and the game goes on when the dialog closes. 1, Quick: the game gets its answer at once when the players it needs are connected, and the dialog shows only when they are not. A run without a window, with a time limit or with a script of presses answers at once |
game_mouse | 0 | How the mouse reaches an Ounce game as its Joy-Con mouse. 0, Hotkey: nothing reaches the game until hotkey_mouse (Ctrl+G) declares mouse mode, which holds the mouse and gives its motion, buttons and wheel to the game, and a second press ends it. 1, Auto: the mouse always reaches the game, held while the game plays with it, and hotkey_mouse lets it go |
joycon2 | 0 | Linux only. 1 makes the runtime connect Joy-Con 2 controllers and Pro Controller 2 over Bluetooth itself, without pairing them, so a controller stays paired with its console. Each Joy-Con 2, or a left and right one together when gamepad_joycon_pair is 1, then plays as a gamepad, a Pro Controller 2 as a Pro Controller, and an Ounce game also gets the Joy-Con 2 mouse sensor and the vibration. Outside the controller applet's dialog it does not search for controllers itself: it tries those that joycon2.txt in the user's config folder (~/.config/scarletnx) lists, a line each (AA:BB:CC:DD:EE:FF L, R for a right Joy-Con 2, P for a Pro Controller 2), every 10 seconds, and one answers while it advertises (a button pressed, or its sync button held). The launcher's Settings > Controllers > Bluetooth finds them and writes that list (GUI). It ran against a left and a right Joy-Con 2. A controller reports, and takes its vibration, once a connection interval: MinConnectionInterval=6 and MaxConnectionInterval=9 (7.5 to 11.25 ms) in the [LE] section of /etc/bluetooth/main.conf, set as root with bluetoothd restarted, gave about 114 reports a second. 0 leaves Bluetooth alone |
joycon2_mouse_scale | 1 | How far a Joy-Con 2's mouse sensor moves an Ounce game's mouse against the sensor's own counts (0.1 to 10). It adds to the host mouse that game_mouse gives |
gamepad_p<N>_device (N from 1 to 8) | empty | Player N's controller: empty takes the next to connect, else its SDL GUID as the log names it, /2 after it for the second of two alike |
gamepad_p<N>_connected | 1 | 0: the game never sees player N. It always sees player 1, which the keyboard drives |
gamepad_p<N>_type | 0 | The controller the game sees for player N: 0 as it is, 1 Pro Controller, 2 two Joy-Cons, 3 a left Joy-Con, 4 a right one |
gamepad_p<N>_swap_ab, gamepad_p<N>_rumble, gamepad_p<N>_map | -1, -10, empty | Player N's own gamepad_swap_ab, gamepad_rumble and gamepad_map; at these values, every player's |
Made from docs/user/settings.md at 69237645142c. GPL-3.0-or-later.