|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinestatic |
Registers a keybind with a name and defaultBinding . Use the returned T:Terraria.ModLoader.ModKeybind to detect when buttons are pressed.
| mod | The mod that this keybind will belong to. Usually, this would be your mod instance. |
| name | The internal name of the keybind. The localization key "Mods.{ModName}.Keybinds.{KeybindName}.DisplayName" will be used for the display name. It is recommended that this not have any spaces. |
| defaultBinding | The default binding. |
Definition at line 35 of file KeybindLoader.cs.
References Terraria.ModLoader.KeybindLoader.RegisterKeybind().
Here is the call graph for this function: