SkyCtrl4AxisMappingEntry

@objcMembers
@objc(GSSkyCtrl4AxisMappingEntry)
public class SkyCtrl4AxisMappingEntry : SkyCtrl4MappingEntry

A mapping entry that defines a AxisMappableAction to be triggered when the gamepad inputs produce an SkyCtrl4AxisEvent, and optionally in conjunction with a specific set of SkyCtrl4ButtonEvent in the state .pressed.

  • Action to be triggered.

    Declaration

    Swift

    public let action: AxisMappableAction
  • Axis event that triggers the action.

    Declaration

    Swift

    public let axisEvent: SkyCtrl4AxisEvent
  • 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.

    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: AxisMappableAction, axisEvent: SkyCtrl4AxisEvent,
                buttonEvents: Set<SkyCtrl4ButtonEvent>)

    Parameters

    droneModel

    drone model onto which the entry should apply

    action

    action to be triggered

    axisEvent

    axis event that triggers the action

    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, axisEvent: SkyCtrl4AxisEvent, buttonEvents: Set<SkyCtrl4ButtonEvent>)

    Declaration

    Swift

    public convenience init(
        droneModel: Drone.Model, action: AxisMappableAction, axisEvent: SkyCtrl4AxisEvent,
        buttonEventsAsInt: Set<Int>)

    Parameters

    droneModel

    drone model onto which the entry should apply

    action

    action to be triggered

    axisEvent

    axis event that triggers the action

    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 }