TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.ModKeybind Class Reference

Represents a loaded input binding. It is suggested to access the keybind status only in ModPlayer.ProcessTriggers. More...

+ Collaboration diagram for Terraria.ModLoader.ModKeybind:

Public Member Functions

List< string > GetAssignedKeys (InputMode mode=InputMode.Keyboard)
 Gets the currently assigned keybindings. Useful for prompts, tooltips, informing users.
 

Package Functions

 ModKeybind (Mod mod, string name, string defaultBinding)
 

Properties

Mod Mod [get, set]
 
string Name [get, set]
 
string FullName [get]
 
string DefaultBinding [get, set]
 
LocalizedText DisplayName [get]
 
bool RetroCurrent [get]
 
bool Current [get]
 Returns true if this keybind is pressed currently. Useful for creating a behavior that relies on the keybind being held down.
 
bool JustPressed [get]
 Returns true if this keybind has just been pressed this update. This is a fire-once-per-press behavior.
 
bool JustReleased [get]
 Returns true if this keybind has just been released this update.
 
bool Old [get]
 Returns true if this keybind has been pressed during the previous update.
 

Detailed Description

Represents a loaded input binding. It is suggested to access the keybind status only in ModPlayer.ProcessTriggers.

Definition at line 11 of file ModKeybind.cs.


The documentation for this class was generated from the following file: