Structures

The following structures are available globally.

  • An actuator can vary in its type and output. This message type describes an actuator and its capabilities.

    See more

    Declaration

    Swift

    public struct Actuator
  • A device has several configuration parameters that can be useful to a host that is sending it instructions. This message type describes a Zorb device and its capabilities.

    See more

    Declaration

    Swift

    public struct Device
  • A timeline consists of an array of vibrations that can have an arbitrary

    length.

    See more

    Declaration

    Swift

    public struct Zorb_Timeline
  • A vibration consists of:

    1) the unsigned integer of LRA channels with which to communicate

    2) the delay to apply to the vibration in milliseconds

    3) the duration of the vibration in milliseconds

    4) the starting position within the vibration (amount to clip off the beginning)

    5) the starting amplitude of the vibration

    6) the ending amplitude of the vibration

    7) the integer index of an easing equation to use in an array of easing functions

    See more

    Declaration

    Swift

    public struct Zorb_Vibration