NSEvent.PressureBehavior
These constants describe the behavior and progression of a pressure gesture.
Declaration
enum PressureBehaviorOverview
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
NSEvent.PressureBehavior.unknownNSEvent.PressureBehavior.primaryDefaultNSEvent.PressureBehavior.primaryClickNSEvent.PressureBehavior.primaryGenericNSEvent.PressureBehavior.primaryAcceleratorNSEvent.PressureBehavior.primaryDeepClickNSEvent.PressureBehavior.primaryDeepDrag