Table of Contents

Struct KeyboardKeyBinding

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

A keyboard key that triggers a button action, with any modifier keys that must be held.

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

Constructors

KeyboardKeyBinding(Key, KeyModifiers)

A keyboard key that triggers a button action, with any modifier keys that must be held.

public KeyboardKeyBinding(Key Key, KeyModifiers Modifiers = KeyModifiers.None)

Parameters

Key Key

The key.

Modifiers KeyModifiers

The modifier keys that must be held, or None.

Properties

Key

The key.

public Key Key { get; init; }

Property Value

Key

Modifiers

The modifier keys that must be held, or None.

public KeyModifiers Modifiers { get; init; }

Property Value

KeyModifiers