Class

UIPressesEvent

An event that describes the state of a set of physical buttons that are available to the device, such as those on an associated remote or game controller.

Declaration

class UIPressesEvent : UIEvent

Topics

Reading the Event Button Presses

var allPresses: Set<UIPress>

Returns the state of all physical buttons in the event.

func presses(for: UIGestureRecognizer) -> Set<UIPress>

Returns the state of all physical buttons in the event that are associated with a particular gesture recognizer.

Relationships

Inherits From

Conforms To

See Also

Button Presses

class UIPress

An object that represents the presence or movement of a button press on the screen for a particular event.