Class KeyPressComputerAction
A collection of keypresses the model would like to perform.
public sealed class KeyPressComputerAction : IComputerAction
- Inheritance
-
KeyPressComputerAction
- Implements
- Inherited Members
Constructors
KeyPressComputerAction()
public KeyPressComputerAction()
KeyPressComputerAction(IEnumerable<string>)
public KeyPressComputerAction(IEnumerable<string> keys)
Parameters
keys
IEnumerable<string>
Properties
Keys
The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
[JsonInclude]
[JsonPropertyName("keys")]
public IReadOnlyList<string> Keys { get; }
Property Value
Type
Specifies the event type. For a keypress action, this property is always set to keypress
.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public ComputerActionType Type { get; }