![]() |
Terraria ModLoader
0.11.1
A framework for Terraria mods
|
Represents a loaded hotkey. It is suggested to access the hotkey status only in ModPlayer.ProcessTriggers. More...
Public Member Functions | |
List< string > | GetAssignedKeys (InputMode mode=InputMode.Keyboard) |
Gets the currently assigned keybindings. Useful for prompts, tooltips, informing users. More... | |
Public Attributes | |
bool | Current => PlayerInput.Triggers.Current.KeyStatus[displayName] |
Returns true if this hotkey is pressed currently. Useful for createing a behavior that relies on the hotkey being held down. More... | |
bool | JustPressed => PlayerInput.Triggers.JustPressed.KeyStatus[displayName] |
Returns true if this hotkey was just released this update. This is a fire-once-per-press behavior. More... | |
bool | JustReleased => PlayerInput.Triggers.JustReleased.KeyStatus[displayName] |
Returns true if this hotkey was just released this update. More... | |
bool | Old => PlayerInput.Triggers.Old.KeyStatus[displayName] |
Returns true if this hotkey was pressed the previous update. More... | |
Properties | |
bool | RetroCurrent [get] |
Represents a loaded hotkey. It is suggested to access the hotkey status only in ModPlayer.ProcessTriggers.
Definition at line 11 of file ModHotkey.cs.
List<string> Terraria.ModLoader.ModHotKey.GetAssignedKeys | ( | InputMode | mode = InputMode.Keyboard | ) |
Gets the currently assigned keybindings. Useful for prompts, tooltips, informing users.
mode | The InputMode. Choose between InputMode.Keyboard and InputMode.XBoxGamepad |
Definition at line 30 of file ModHotkey.cs.
bool Terraria.ModLoader.ModHotKey.Current => PlayerInput.Triggers.Current.KeyStatus[displayName] |
Returns true if this hotkey is pressed currently. Useful for createing a behavior that relies on the hotkey being held down.
Definition at line 44 of file ModHotkey.cs.
bool Terraria.ModLoader.ModHotKey.JustPressed => PlayerInput.Triggers.JustPressed.KeyStatus[displayName] |
Returns true if this hotkey was just released this update. This is a fire-once-per-press behavior.
Definition at line 49 of file ModHotkey.cs.
bool Terraria.ModLoader.ModHotKey.JustReleased => PlayerInput.Triggers.JustReleased.KeyStatus[displayName] |
Returns true if this hotkey was just released this update.
Definition at line 54 of file ModHotkey.cs.
bool Terraria.ModLoader.ModHotKey.Old => PlayerInput.Triggers.Old.KeyStatus[displayName] |
Returns true if this hotkey was pressed the previous update.
Definition at line 59 of file ModHotkey.cs.
|
get |
Definition at line 34 of file ModHotkey.cs.