Skip to content

Port: rebindable quick loadout key and controller bindings (#114) - #149

Merged
Adubbz merged 1 commit into
TheMoonPeople:masterfrom
drkm9743:input/rebindable-bindings
Oct 23, 2026
Merged

Adubbz merged 1 commit into
TheMoonPeople:masterfrom
drkm9743:input/rebindable-bindings

Conversation

@drkm9743

Copy link
Copy Markdown
Contributor

Closes #114
Needs Kazarov PR #32 (controller binding set, quick_loadout host action) merged first.

The quick loadout panel now opens on its own binding, quick_loadout: Down on the keyboard and D-pad Down on a controller by default, so nothing changes until it is rebound.

Controllers get a binding set separate from the keyboard's, input.gamepad_bindings in config.json, edited on a new Gamepad page in PC SETTINGS (the Bindings page is now Keyboard). Pad buttons and the port's own actions (quick loadout, FPS toggle, debug menu, gyro hold) take SDL gamepad button names or lefttrigger/righttrigger. Actions left out keep their defaults: the pad's own layout, and the paddle defaults for the host actions, which move from the keyboard set (keyboard Gamepad: bindings still work).

Capture takes any button or trigger. Escape, a right click, Cancel capture or five seconds cancels it.
A button already used by another pad button's action swaps with it, and Restore binding puts the default back the same way.
Button names follow the glyph style, and with new glyphs the game's button symbols and the page's prompts follow the controller bindings.

Tests: new PcOptions coverage for swapping, restoring and glyph mapping; PlatformConfig round trip.

The quick loadout panel opens on its own binding, quick_loadout: Down on the
keyboard and the D-pad's Down on a controller by default, as before.

Controllers get a binding set apart from the keyboard's, input.gamepad_bindings
in config.json, edited on a new Gamepad page of PC SETTINGS (the Bindings page
is now Keyboard). A capture takes any button or trigger, cancelled by Escape,
a right click or five seconds; a button another pad button's action has swaps
over, and Restore binding puts the default back the same way. Button names
follow the glyph style, and the game's symbols and the page's prompts follow
the controller bindings.

Kazarov: controller binding set and quick_loadout host action.

Closes #114
@Adubbz
Adubbz merged commit 4453641 into TheMoonPeople:master Oct 23, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loadout Key Combo Toggle - DC2

2 participants