Table of Contents

Struct Keyboard.Snapshot

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

A copy of the keys that were down at one moment.

public readonly record struct Keyboard.Snapshot : IEquatable<Keyboard.Snapshot>
Implements
Inherited Members

Properties

PressedKeys

The keys that were down in this snapshot.

public IReadOnlyCollection<Key> PressedKeys { get; }

Property Value

IReadOnlyCollection<Key>

Methods

IsKeyDown(Key)

Whether the key was down in this snapshot.

public bool IsKeyDown(Key key)

Parameters

key Key

Returns

bool

IsKeyUp(Key)

Whether the key was up in this snapshot. A default snapshot reports no keys down and no keys up.

public bool IsKeyUp(Key key)

Parameters

key Key

Returns

bool