Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Rebindables
A helper for adding modded keybinds that work with the vanilla controls menu.
By pseudopulse
| Last updated | 6 months ago |
| Total downloads | 222779 |
| Total rating | 3 |
| Categories | |
| Dependency string | pseudopulse-Rebindables-1.0.4 |
| Dependants | 35 other packages depend on this package |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.9README
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