EncoderEvent
public struct EncoderEvent<S> : Decodable, Hashable, Locatable where S : Decodable, S : Hashable
Information received about a rotary encoder event.
-
This json object contains data that you can set and are stored persistently.
Declaration
Swift
public let settings: S
-
Declaration
Swift
public let controller: ControllerType
-
The coordinates of the action triggered.
Declaration
Swift
public let coordinates: Coordinates?
-
Boolean which is
true
on rotation when encoder pressed.Declaration
Swift
public let pressed: Bool
-
The integer which holds the number of “ticks” on encoder rotation.
Positive values are for clockwise rotation, negative values are for counterclockwise rotation, zero value is never happen.
Declaration
Swift
public let ticks: Int