Struct KeyEvent
Contains information about a key event. This event is emitted when a key is pressed, released, or repeats.
public struct KeyEvent : IWindowEvent
- Implements
- Inherited Members
Constructors
KeyEvent(WindowEventType, uint, Key)
Creates a new KeyEvent.
public KeyEvent(WindowEventType eventType, uint scancode, Key key)
Parameters
eventType
WindowEventTypeThe key event type.
scancode
uintThe raw scan code of the key.
key
KeyThe key that has been pressed, released, or is repeating.
Fields
Key
The key that has been pressed, released, or is repeating.
public readonly Key Key
Field Value
- Key
- Contains information about a key event. This event is emitted when a key is pressed, released, or repeats.
Scancode
The raw scan code of the key.
public readonly uint Scancode
Field Value
- uint
- Contains information about a key event. This event is emitted when a key is pressed, released, or repeats.
Properties
EventType
The WindowEventType of this event.
public readonly WindowEventType EventType { get; }
Property Value
- WindowEventType
- Contains information about a key event. This event is emitted when a key is pressed, released, or repeats.