Contents

NSEvent.PressureBehavior

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

Declaration

enum PressureBehavior

Overview

These constants describe the behavior and progression of a pressure gesture. They allow you to configure how pressure from a pressure-sensitive device, such as the Force Touch trackpad, is interpreted by the system. For example, a drawing or painting app may adjust the behavior of pressure events to focus on variable pressure and prevent force clicks from occurring.

In most cases, a pressure gesture’s behavior goes into effect when the gesture event’s stage property reaches a value of 1 and remains in effect until the gesture event’s stage property reaches a value of 0. This behavior corresponds to the behavior of simultaneously generated mouse-up and mouse-down events.

Topics

Constants

Initializers

See Also

Getting pressure information