tModLoader v2024.10
A mod to make and play Terraria mods
|
Inherits Loader.
Static Public Member Functions | |
static ModKeybind | RegisterKeybind (Mod mod, string name, Keys defaultBinding) |
Registers a keybind with a name and defaultBinding . Use the returned ModKeybind to detect when buttons are pressed. More... | |
static ModKeybind | RegisterKeybind (Mod mod, string name, string defaultBinding) |
Registers a keybind with a name and defaultBinding . Use the returned ModKeybind to detect when buttons are pressed. More... | |
|
static |
Registers a keybind with a name and defaultBinding . Use the returned 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. |
|
static |
Registers a keybind with a name and defaultBinding . Use the returned 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. |