TouchData

public struct TouchData

Data describing the current touch.

  • Describes the touch intensity at 12 points across the Jacquard fabric. The values range from 0 -> 128, Where 128 is the max intensity and 0 indicates Line is not touched

    Declaration

    Swift

    public typealias Lines = (
      UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8
    )
  • The sequence number of this touch in a continuous sequence of touches.

    Ie. if a received sequence number is less than the last observed sequence numbers, the finger was lifted between them. Note that not all touches will be delivered, so the sequence numbers will have gaps.

    Declaration

    Swift

    public var sequence: UInt32
  • The overall proximity of the touch.

    Declaration

    Swift

    public var proximity: UInt32
  • Describes the touches.

    Declaration

    Swift

    public var lines: Lines
  • Convenience accessor returns the 12 UInt8 values in lines in a [UInt8].

    Declaration

    Swift

    public var linesArray: [UInt8] { get }
  • Creates an empty instance.

    Useful for initializing a var to avoid an unnecessary Optional.

    Declaration

    Swift

    public static var empty: TouchData { get }