Skip to content

Puts all the input settings in one place and beautifies them

License

Notifications You must be signed in to change notification settings

Dual-Iron/improved-input-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improved Input Config

To install

Visit its Steam Workshop page and subscribe!

To add a keybind in your mod

Add improved-input-config as a requirement in modinfo.json, then reference the latest release. Make sure to keep the ImprovedInput.xml file next to the ImprovedInput.dll file.

Registering a keybind boils down to something like this in your mod's plugin class:

public static readonly PlayerKeybind Explode = PlayerKeybind.Register("example:explode", "Example Mod", "Explode", KeyCode.C, KeyCode.JoystickButton3);
If that doesn't work...

...assign the keybind in your OnEnable() method inside a try-catch block to make sure there's no issues.

public static PlayerKeybind Explode;

void OnEnable() {
  try {
    Explode = PlayerKeybind.Register("example:explode", "Example Mod", "Explode", KeyCode.C, KeyCode.JoystickButton3);
  }
  catch (Exception e) {
    Logger.LogError(e);
  }
}

About

Puts all the input settings in one place and beautifies them

Topics

Resources

License

Stars

Watchers

Forks

Languages