tModLoader v0.11.8.9
A mod to make and play 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... | |
Properties | |
bool | Current [get] |
Returns true if this hotkey is pressed currently. Useful for createing a behavior that relies on the hotkey being held down. More... | |
bool | JustPressed [get] |
Returns true if this hotkey was just released this update. This is a fire-once-per-press behavior. More... | |
bool | JustReleased [get] |
Returns true if this hotkey was just released this update. More... | |
bool | Old [get] |
Returns true if this hotkey was pressed the previous update. More... | |
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.
|
get |
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.
|
get |
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.
|
get |
Returns true if this hotkey was just released this update.
Definition at line 54 of file ModHotkey.cs.
|
get |
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.