Struct KeyboardState
Default state layout for keyboards.
Assembly: Unity.InputSystem.dll
public struct KeyboardState : IInputStateTypeInfo
Constructors
Declaration
public KeyboardState(params Key[] pressedKeys)
Parameters
| Type |
Name |
Description |
| Key[] |
pressedKeys |
|
Fields
Declaration
Field Value
Properties
Memory format tag for KeybboardState.
Declaration
public static FourCC Format { get; }
Property Value
| Type |
Description |
| FourCC |
Returns "KEYS".
|
Declaration
public FourCC format { get; }
Property Value
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
| Type |
Name |
Description |
| Key |
key |
|
| bool |
state |
|
Implements
See Also