Table of Contents

Struct CapturedKey

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

A key a player pressed while IKeyCapture was listening, with the modifiers held around it. A modifier pressed and let go on its own comes back as that key with no modifiers - Shift alone is a binding in its own right (running, say).

public readonly record struct CapturedKey : IEquatable<CapturedKey>
Implements
Inherited Members

Constructors

CapturedKey(Key, KeyModifiers)

A key a player pressed while IKeyCapture was listening, with the modifiers held around it. A modifier pressed and let go on its own comes back as that key with no modifiers - Shift alone is a binding in its own right (running, say).

public CapturedKey(Key Key, KeyModifiers Modifiers)

Parameters

Key Key
Modifiers KeyModifiers

Properties

Key

public Key Key { get; init; }

Property Value

Key

Modifiers

public KeyModifiers Modifiers { get; init; }

Property Value

KeyModifiers