Contents

init(element:fromPhysicalValue:timestamp:)

Creates a HID element value from a physical value.

Declaration

init?<FloatingPointType>(element: HIDElement, fromPhysicalValue: FloatingPointType, timestamp: SuspendingClock.Instant) where FloatingPointType : BinaryFloatingPoint

Parameters

  • element:

    The element associated with this value.

  • timestamp:

    The time that the value was created.

Discussion

The raw value and physical value are calculated; both must be valid.

See Also

Create a HID element from a value