// // GCButtonElement.h // GameController // // Copyright © 2021 Apple Inc. All rights reserved. // #import #import #import #import NS_ASSUME_NONNULL_BEGIN /** An object conforming to \c GCButtonElement represents a momentary switch, such as a push button. A button's input only asserts while the user is interacting with it, and then returns to a preferred state (not pressed, not touched). */ API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0)) @protocol GCButtonElement /** Get the input containing the pressed state of the button. */ @property (readonly) id pressedInput; /** Get the input containing the touched state of the button. Some buttons feature capacitive touch capabilities where the user can touch the button without pressing it. */ @property (readonly, nullable) id touchedInput; @end NS_ASSUME_NONNULL_END