You are viewing a potentially older version of this package. View all versions.
pseudopulse-Rebindables-1.0.1 icon

Rebindables

A helper for adding modded keybinds that work with the vanilla controls menu.

Date uploaded a week ago
Version 1.0.1
Download link pseudopulse-Rebindables-1.0.1.zip
Downloads 6317
Dependency string pseudopulse-Rebindables-1.0.1

This mod requires the following mods to function

bbepis-BepInExPack-5.4.9 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.9
RiskofThunder-HookGenPatcher-1.2.1 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.1

README

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.1

  • fix & breaking change but no released mod uses this yet so its fineeeee

1.0.0

  • release