Rebindables
A helper for adding modded keybinds that work with the vanilla controls menu.
About this mod Author’s original text
Rebindables
A helper for adding modded keybinds that work with the vanilla controls menu.
using Rebindables;
public static ModKeybind SomeButton = RebindAPI.RegisterModKeybind(new ModKeybind(
"BUTTON_NAME", // language token for the name of your input in the menu
KeyCode.F, // the default keyboard binding for your input
10, // the default controller binding for your input
"Jump" // optional: if specified, your input will be placed after the corresponding vanilla input in the controls menu
));
// to read your input
InputBankTest inputBankTest =... // say we have an inputbank
bool ourButtonHeld = inputBankTest.GetButtonState(SomeButton).down; // we can read it with GetButtonState (SomeButton being the ModKeybind you created earlier)
Changelog
1.0.4
- ACTUALLY FIXED THE ISSUE WITH INCORRECT DEFAULTS LOADING FINALLY
- fixed issue where mouse buttons bound would fail to save
1.0.3
- now falls back on the mod folder if for whatever reason windows decides to be a stupid fucking piece of software and not allow it to use a file in the saves directory
1.0.2
- another fix
1.0.1
- fix & breaking change but no released mod uses this yet so its fineeeee
1.0.0
- release
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: