AngeliA
Search Results for

    Show / Hide Table of Contents

    Struct Hotkey

    Data for a keyboard hotkey configuration

    Constructors

    Hotkey(KeyboardKey, bool, bool, bool)

    Declaration
    public Hotkey(KeyboardKey key, bool ctrl = false, bool shift = false, bool alt = false)

    Hotkey(string)

    Create a hotkey config from string data. Get this string using hotkey.GetStringData();

    Declaration
    public Hotkey(string data)

    Fields

    Alt

    True if this hotkey require alt to be holding

    Declaration
    public readonly bool Alt

    Ctrl

    True if this hotkey require ctrl to be holding

    Declaration
    public readonly bool Ctrl

    Key

    The target keyboard key

    Declaration
    public readonly KeyboardKey Key

    Shift

    True if this hotkey require shift to be holding

    Declaration
    public readonly bool Shift

    Methods

    Down()

    True if the hotkey is pressed for the current frame

    Declaration
    public bool Down()

    DownGUI()

    True if the hotkey is triggered repeatedly by holding

    Declaration
    public bool DownGUI()

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    GetStringData()

    Get a string that saves the infomation of this hotkey

    Declaration
    public string GetStringData()

    Holding()

    True if the hotkey is currently holding

    Declaration
    public bool Holding()

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The fully qualified type name.

    Overrides
    ValueType.ToString()
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค