KeyEvent
public struct KeyEvent<S> : Decodable, Hashable, Locatable where S : Decodable, S : Hashable
Information received about a keyUp
or keyDown
event.
-
This json object contains data that you can set and are stored persistently.
Declaration
Swift
public let settings: S
-
The coordinates of the action triggered.
Declaration
Swift
public let coordinates: Coordinates?
-
This is a parameter that is only set when the action has multiple states defined in its manifest.json.
The 0-based value contains the current state of the action.
Declaration
Swift
public let state: Int?
-
This is a parameter that is only set when the action is triggered with a specific value from a Multi Action.
For example if the user sets the Game Capture Record action to be disabled in a Multi Action, you would see the value 1.
Important
Only the value 0 and 1 are valid.Declaration
Swift
public let userDesiredState: Int?
-
Boolean indicating if the action is inside a Multi Action.
Declaration
Swift
public let isInMultiAction: Bool