Link Search Menu Expand Document

PressesEvent

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.

open class PressesEvent: Event 

Inheritance

Event

Properties

allPresses

Returns the state of all physical buttons in the event.

open private(set) var allPresses: Set<Press>

Methods

presses(for:)

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

open func presses(for guesture: GestureRecognizer) -> Set<Press>