Details

Last Updated
4 days ago
First Uploaded
4 days ago
Downloads
59
Likes
1
Size
37KB
Dependency string
pseudopulse-Rebindables-1.0.0
Dependants

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
    KeyboardKeyCode.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.0

  • release
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.