Contents

getDoubleValueField(_:)

Returns the floating-point value of a field in a Quartz event.

Declaration

func getDoubleValueField(_ field: CGEventField) -> Double

Parameters

  • field:

    A field in the specified event. Pass one of the constants listed in Cgeventfield.

Return Value

A floating point representation of the current value of the specified field.

Discussion

In cases where the field value is represented within the event by a fixed point number or an integer, the result is scaled to the appropriate range as part of creating the floating point representation.

See Also

Functions