TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetAssignedKeys()

List< string > Terraria.ModLoader.ModKeybind.GetAssignedKeys ( InputMode mode = InputMode::Keyboard)
inline

Gets the currently assigned keybindings. Useful for prompts, tooltips, informing users.

Parameters
modeThe InputMode. Choose between InputMode.Keyboard and InputMode.XBoxGamepad

Definition at line 67 of file ModKeybind.cs.

68 {
69 return PlayerInput.CurrentProfile.InputModes[mode].KeyStatus[FullName];
70 }
static PlayerInputProfile CurrentProfile

References Terraria.GameInput.PlayerInput.CurrentProfile, and Terraria.ModLoader.ModKeybind.FullName.