Instance Property

pressureBehavior

The pressure behavior and progression for an event of type NSEvent.EventType.pressure.

Declaration

var pressureBehavior: NSEvent.PressureBehavior { get }

Discussion

This property describes the behavior and progression of an event of type NSEvent.EventType.pressure. The value of this property indicates how the pressure event behaves, including actuations, pressure-level reporting, and stage transitions.

See Also

Getting Pressure Information

var pressure: Float

A value from 0.0 through 1.0 indicating the degree of pressure applied to an appropriate input device.

var stage: Int

A value of 0, 1, or 2, indicating the stage of a gesture event of type NSEvent.EventType.pressure.

var stageTransition: CGFloat

The transition value for the stage of a pressure gesture event of type NSEvent.EventType.pressure.

enum NSEvent.PressureBehavior

These constants describe the behavior and progression of a pressure gesture.