Default state layout for keyboards.
public struct KeyboardState : IInputStateTypeInfo
Constructors
Declaration
public KeyboardState(params Key[] pressedKeys)
Parameters
Type |
Name |
Description |
Key[] |
pressedKeys |
|
Fields
Declaration
Field Value
Properties
Declaration
public readonly FourCC format { get; }
Property Value
Implements
Memory format tag for KeybboardState.
Declaration
public static readonly FourCC Format { get; }
Property Value
Type |
Description |
FourCC |
Returns "KEYS".
|
Methods
Declaration
public void Press(Key key)
Parameters
Type |
Name |
Description |
Key |
key |
|
Declaration
public void Release(Key key)
Parameters
Type |
Name |
Description |
Key |
key |
|
Declaration
public void Set(Key key, bool state)
Parameters
See Also