Table of Contents
ModSetting for a customizable Hotkey
public class ModSettingHotkey : BTD_Mod_Helper.Api.ModOptions.ModSetting<string>
Inheritance System.Object ModSetting BTD_Mod_Helper.Api.ModOptions.ModSetting<System.String> ModSettingHotkey
Initializes a new instance of the System.Object class.
public ModSettingHotkey();
Returns whether the Hotkey is currently being pressed / held
public bool IsPressed();
Returns whether the Hotkey was pressed down on this frame
public bool JustPressed();
Returns whether the Hotkey just went from being pressed to not being pressed on this frame
public bool JustReleased();
Sets the current value of this ModSetting
public override void SetValue(object val);
val
System.Object
The new value
Creates a new ModSettingHotkey from a KeyCode
public static BTD_Mod_Helper.Api.ModOptions.ModSettingHotkey implicit operator ModSettingHotkey(KeyCode key);