SkyCtrl4ButtonsMappingEntry
@objcMembers
@objc(GSSkyCtrl4ButtonsMappingEntry)
public class SkyCtrl4ButtonsMappingEntry : SkyCtrl4MappingEntry
A mapping entry that defines a ButtonsMappableAction
to be triggered when the gamepad inputs produce a set of
SkyCtrl4ButtonEvent
in the state .pressed
.
-
Action to be triggered.
Declaration
Swift
public let action: ButtonsMappableAction
-
Set of button events that triggers the action when in the
.pressed
state.Declaration
Swift
public let buttonEvents: Set<SkyCtrl4ButtonEvent>
-
Set of button events that triggers the action when in the
.pressed
state as an Int set.Note
This should be only used in Objective-C.Declaration
Swift
public var buttonEventsAsInt: Set<Int> { get }
-
Constructor.
Declaration
Swift
public init(droneModel: Drone.Model, action: ButtonsMappableAction, buttonEvents: Set<SkyCtrl4ButtonEvent>)
Parameters
droneModel
drone model onto which the entry should apply
action
action to be triggered
buttonEvents
event set that triggers the action
-
Constructor.
Note
This function is for Objective-C only. Swift must use the function
init(droneModel: Drone.Model, action: ButtonsMappableAction, buttonEvents: Set<SkyCtrl4ButtonEvent>)
Declaration
Swift
public convenience init(droneModel: Drone.Model, action: ButtonsMappableAction, buttonEventsAsInt: Set<Int>)
Parameters
droneModel
drone model onto which the entry should apply
action
action to be triggered
buttonEventsAsInt
event set that triggers the action
-
Undocumented
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
-
Undocumented
Declaration
Swift
public override var hash: Int { get }