Table of Contents

Struct KeyEvent

Namespace
Pie.Windowing.Events
Assembly
Pie.Windowing.dll

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 WindowEventType

The key event type.

scancode uint

The raw scan code of the key.

key Key

The 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.