Skip to main content
Version: 1.0.0-preview.33

Velaptor.Input.KeyEventArgs

Velaptor

Velaptor.Input

KeyEventArgs Struct

Holds information about a keyboard key event.

public readonly struct KeyEventArgs :
System.IEquatable<Velaptor.Input.KeyEventArgs>

Implements System.IEquatable<KeyEventArgs>

Constructors

KeyEventArgs(KeyCode) Constructor

Initializes a new instance of the KeyEventArgs struct.

public KeyEventArgs(Velaptor.Input.KeyCode key);

Parameters

key KeyCode

The keyboard key related to the event.

Properties

Key

Gets the key that was pushed into the down position or lifted into the up position.

public Velaptor.Input.KeyCode Key { get; }

Property Value

KeyCode