Input event type for keyboard events.
    public class InputEventKey : InputEventWithModifiers

Stores key presses on the keyboard. Supports key presses, key releases and Echo events.

Inheritance Chain

Constructors

    public InputEventKey()

Properties

    public bool Echo { get; set; }

If true, the key was already pressed before this event. It means the user is holding the key down.

    public bool Pressed { get; set; }

If true, the key’s state is pressed. If false, the key’s state is released.

    public uint Scancode { get; set; }

Key scancode, one of the [enum KeyList] constants.

    public uint Unicode { get; set; }

Key Unicode identifier when relevant. Unicode identifiers for the composite characters and complex scripts may not be available unless IME input mode is active. See OS.SetImeActive(bool) for more information.

Methods

    [Obsolete("GetScancode is deprecated. Use the Scancode property instead.")]
    public uint GetScancode()

    public uint GetScancodeWithModifiers()

    [Obsolete("GetUnicode is deprecated. Use the Unicode property instead.")]
    public uint GetUnicode()

    [Obsolete("SetEcho is deprecated. Use the Echo property instead.")]
    public void SetEcho(bool echo)

Setter for Echo

    [Obsolete("SetPressed is deprecated. Use the Pressed property instead.")]
    public void SetPressed(bool pressed)

Setter for Pressed

    [Obsolete("SetScancode is deprecated. Use the Scancode property instead.")]
    public void SetScancode(uint scancode)

    [Obsolete("SetUnicode is deprecated. Use the Unicode property instead.")]
    public void SetUnicode(uint unicode)
Tags: