Struct Keyboard.Snapshot
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
Methods
IsKeyDown(Key)
Whether the key was down in this snapshot.
public bool IsKeyDown(Key key)
Parameters
keyKey
Returns
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
keyKey