Expand description
§Bindings to the GameController
framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- GCAcceleration
GCMotion
- A 3 dimensional acceleration vector measured as scalar multiples of earth’s gravitational acceleration, G.
- GCColor
GCColor
- Represents a color used by a GCDeviceLight.
- GCController
GCController
- Controllers are available to an application that links to GameController.framework. There are 2 ways to access controllers paired to the system, adopt both to ensure the best user experience:
- GCController
Axis Input GCControllerAxisInput
andGCControllerElement
- Apple’s documentation
- GCController
Button Input GCControllerButtonInput
andGCControllerElement
- Apple’s documentation
- GCController
Direction Pad GCControllerDirectionPad
andGCControllerElement
- A direction pad is a common grouping of 2 axis inputs where the input can also be interpreted as 2 sets of mutually exclusive button pairs. Only one button in each pair, {up, down} and {left, right}, can be pressed at any one time.
- GCController
Element GCControllerElement
- Every controller element knows which collection it belongs to and whether its input value is analog or digital.
- GCController
Input State GCControllerInput
- Apple’s documentation
- GCController
Live Input GCControllerInput
- Apple’s documentation
- GCController
Player Index GCController
- This is the player index that a connected controller will have if it has never been assigned a player index on the current system. Controllers retain the player index they have been assigned between game sessions, so if you wish to unset the player index of a controller set it back to this value.
- GCController
Touchpad GCControllerElement
andGCControllerTouchpad
- A touchpad is a touch-based two axis input with a notion of “touch state”. It keeps track of whether the touchpad is actively being touched, and generates events based on a change in touch state.
- GCDevice
Battery GCDeviceBattery
- A controller battery is an abstract representation of the battery level and battery status of a GCController instance.
- GCDevice
Battery State GCDeviceBattery
- This is the battery status and it’s represented by one of the following values: GCControllerBatteryStateUnknown means that the current state of battery is unknown or cannot be determined GCControllerBatteryStateDischarging means that controller is on battery and discharging at this moment GCControllerBatteryStateCharging means that controller is plugged in, but it’s battery level is less than 100% GCControllerBatteryStateFull means that controller is plugged in and it’s battery level is 100%
- GCDevice
Cursor GCControllerDirectionPad
andGCControllerElement
andGCDeviceCursor
- A cursor is a Direction Pad that has its axis extended from [-1; 1] to [width; height] range Up, down, left, right allows to use mouse to simulate DirectionaPad or Thumbstick since values are normalized for these elements
- GCDevice
Haptics GCDeviceHaptics
- Apple’s documentation
- GCDevice
Light GCDeviceLight
- A controller light is an abstract representation of the light-emitting capabilities of a GCController instance.
- GCDevice
Physical Input Element Change GCDevicePhysicalInputStateDiff
- Apple’s documentation
- GCDirectional
Gamepad GCDirectionalGamepad
andGCMicroGamepad
andGCPhysicalInputProfile
- Directional Gamepad profile.
- GCDual
Sense Adaptive Trigger GCControllerButtonInput
andGCControllerElement
andGCDualSenseAdaptiveTrigger
- DualSense triggers are required to be analog inputs. Common uses would be acceleration and decelleration in a driving game for example.
- GCDual
Sense Adaptive Trigger Mode GCDualSenseAdaptiveTrigger
- Apple’s documentation
- GCDual
Sense Adaptive Trigger Positional Amplitudes GCDualSenseAdaptiveTrigger
- Apple’s documentation
- GCDual
Sense Adaptive Trigger Positional Resistive Strengths GCDualSenseAdaptiveTrigger
- Apple’s documentation
- GCDual
Sense Adaptive Trigger Status GCDualSenseAdaptiveTrigger
- Apple’s documentation
- GCDual
Sense Gamepad GCDualSenseGamepad
andGCExtendedGamepad
andGCPhysicalInputProfile
- The GCDualSenseGamepad profile represents any supported DualSense controller.
- GCDual
Shock Gamepad GCDualShockGamepad
andGCExtendedGamepad
andGCPhysicalInputProfile
- The GCDualShockGamepad profile represents any supported DualShock 4 controller.
- GCEuler
Angles GCMotion
- A structure containing 3-axis rotation data. The angles are rotated in order or pitch then yaw then roll.
- GCEvent
View Controller GCEventViewController
andobjc2-app-kit
and macOS - A view controller subclass that allows fine grained control of the user interface system’s handling of game controller events. Set an instance of this class as your root view controller if you intend to use GCController APIs for handling game controllers.
- GCExtended
Gamepad GCExtendedGamepad
andGCPhysicalInputProfile
- Apple’s documentation
- GCExtended
Gamepad Snap Shot Data V100 GCExtendedGamepadSnapshot
- Apple’s documentation
- GCExtended
Gamepad Snapshot Deprecated GCExtendedGamepad
andGCExtendedGamepadSnapshot
andGCPhysicalInputProfile
- A GCExtendedGamepadSnapshot snapshot is a concrete GCExtendedGamepad implementation. It can be used directly in an application to implement controller input replays. It is also returned as the result of polling a controller.
- GCExtended
Gamepad Snapshot Data GCExtendedGamepadSnapshot
- Apple’s documentation
- GCExtended
Gamepad Snapshot Data Version Deprecated GCExtendedGamepadSnapshot
- Apple’s documentation
- GCGamepad
Deprecated GCGamepad
andGCPhysicalInputProfile
- Apple’s documentation
- GCGamepad
Snap Shot Data V100 GCGamepadSnapshot
- Apple’s documentation
- GCGamepad
Snapshot Deprecated GCGamepad
andGCGamepadSnapshot
andGCPhysicalInputProfile
- A GCGamepadSnapshot snapshot is a concrete GCGamepad implementation. It can be used directly in an application to implement controller input replays. It is also returned as the result of polling a controller.
- GCGear
Shifter Element GCGearShifterElement
- A
GCGearShifterElement
object represents an attached gear shifter. Both pattern and sequential gear shifters are supported. - GCKeyboard
GCKeyboard
- GCKeyboard is available to an application that links to GameController.framework There are 2 ways to access keyboard paired to the system: 1: Querying for the coalescedKeyboard using [GCKeyboard coalescedKeyboard] 2: Registering for Connection/Disconnection notifications from NSNotificationCenter
- GCKeyboard
Input GCKeyboardInput
andGCPhysicalInputProfile
- Keyboard profile. Contains the current state of buttons specified in GCKeyCodes.h.
- GCMicro
Gamepad GCMicroGamepad
andGCPhysicalInputProfile
- Apple’s documentation
- GCMicro
Gamepad Snap Shot Data V100 GCMicroGamepadSnapshot
- Apple’s documentation
- GCMicro
Gamepad Snapshot Deprecated GCMicroGamepad
andGCMicroGamepadSnapshot
andGCPhysicalInputProfile
- A GCMicroGamepadSnapshot snapshot is a concrete GCMicroGamepad implementation. It can be used directly in an application to implement controller input replays. It is also returned as the result of polling a controller.
- GCMicro
Gamepad Snapshot Data GCMicroGamepadSnapshot
- Apple’s documentation
- GCMicro
Gamepad Snapshot Data Version Deprecated GCMicroGamepadSnapshot
- Apple’s documentation
- GCMotion
GCMotion
- A profile for getting motion input from a controller that has the ability to measure acceleration and rotation rate.
- GCMouse
GCMouse
- Mice are available to an application that links to GameController.framework. There are 2 ways to access mice paired to the system. Adopt both to ensure the best user experience:
- GCMouse
Input GCMouseInput
andGCPhysicalInputProfile
- Mouse profile that represent a physical mouse object with two axis cursor, two axis scroll, left button, optional right and middle buttons and optional set of auxiliary buttons.
- GCPhysical
Input Element Collection GCPhysicalInputElement
- An instance of
GCPhysicalInputElementCollection
contains the collection of input elements found in a device’s physical input profile. - GCPhysical
Input Profile GCPhysicalInputProfile
- A game controller profile representing physical buttons, thumbsticks, dpads, etc… on a controller.
- GCPhysical
Input Source Direction GCPhysicalInputSource
- One or more directions associated with a
GCPhysicalInputSource.
- GCPoint2
GCTypes
- Apple’s documentation
- GCQuaternion
GCMotion
- Represents a quaternion (one way of parameterizing attitude). If q is an instance of GCQuaternion, mathematically it represents the following quaternion:
- GCRacing
Wheel GCRacingWheel
- Apple’s documentation
- GCRacing
Wheel Input GCRacingWheelInput
- Apple’s documentation
- GCRacing
Wheel Input State GCRacingWheelInput
- Apple’s documentation
- GCRotation
Rate GCMotion
- A structure containing 3-axis rotation rate data.
- GCSteering
Wheel Element GCSteeringWheelElement
- Apple’s documentation
- GCSystem
Gesture State GCControllerElement
- Elements on a GCDevice can be used for system gestures. The system gesture state represents how input is handled in the app for a controller element that is bound to a system gesture.
- GCTouch
State GCControllerTouchpad
- Represents the current state of a touch event on a touchpad.
- GCXbox
Gamepad GCExtendedGamepad
andGCPhysicalInputProfile
andGCXboxGamepad
- The GCXboxGamepad profile represents any supported Xbox controller.
Constants§
- GCDual
Sense Adaptive Trigger Discrete Position Count GCDualSenseAdaptiveTrigger
- The number of discrete control positions supported by the DualSense adaptive triggers. Each of these positions can be configured separately in multi-position feedback and multi-position vibration modes.
Statics§
- GCController
DidBecome ⚠Current Notification GCController
- Use these constants with NSNotificationCenter to listen to a controller becoming the most recently used controller. This is a good time to swap out UI to match the new current controller, and unregister any handlers with the old current controller.
- GCController
DidConnect ⚠Notification GCController
- Use these constants with NSNotificationCenter to listen to connection and disconnection events.
- GCController
DidDisconnect ⚠Notification GCController
- Apple’s documentation
- GCController
DidStop ⚠Being Current Notification GCController
- Apple’s documentation
- GCController
User ⚠Customizations DidChange Notification GCController
- Use this constant with NSNotificationCenter to listen to controller user customization events.
- GCCurrent
Extended ⚠Gamepad Snapshot Data Version GCExtendedGamepadSnapshot
- Apple’s documentation
- GCCurrent
Micro ⚠Gamepad Snapshot Data Version GCMicroGamepadSnapshot
- Apple’s documentation
- GCHaptic
Duration ⚠Infinite GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠All GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠Default GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠Handles GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠Left Handle GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠Left Trigger GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠Right Handle GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠Right Trigger GCDeviceHaptics
- Apple’s documentation
- GCHaptics
Locality ⚠Triggers GCDeviceHaptics
- Apple’s documentation
- GCInput
ButtonA ⚠GCInputNames
- GCInput
ButtonB ⚠GCInputNames
- GCInput
Button ⚠Home GCInputNames
- GCInput
Button ⚠Menu GCInputNames
- GCInput
Button ⚠Options GCInputNames
- GCInput
Button ⚠Share GCInputNames
- GCInput
ButtonX ⚠GCInputNames
- GCInput
ButtonY ⚠GCInputNames
- GCInput
Direction ⚠Pad GCInputNames
- GCInput
Directional ⚠Cardinal Dpad GCDirectionalGamepad
- An optional secondary directional input surface for the directional gamepad. This input is guaranteed to be an 8-way digital dpad with physical Up, Down, Left, Right butttons.
- GCInput
Directional ⚠Center Button GCDirectionalGamepad
- An optional button for the directional gamepad. This input represents the center button of the cardinal dpad.
- GCInput
Directional ⚠Dpad GCDirectionalGamepad
- The primary directional input surface for the directional gamepad
- GCInput
Directional ⚠Touch Surface Button GCDirectionalGamepad
- The button corresponding to pressing anywhere on the primary directional input surface for the directional gamepad
- GCInput
Dual ⚠Shock Touchpad Button GCInputNames
- GCInput
Dual ⚠Shock Touchpad One GCInputNames
- GCInput
Dual ⚠Shock Touchpad Two GCInputNames
- GCInput
Left ⚠Bumper GCInputNames
- Identifies the button element located at the top-left/right of a gamepad, between the left/right shoulder button and the gamepad’s horizontal center.
- GCInput
Left ⚠Paddle GCInputNames
- GCInput
Left ⚠Shoulder GCInputNames
- GCInput
Left ⚠Thumbstick GCInputNames
- GCInput
Left ⚠Thumbstick Button GCInputNames
- GCInput
Left ⚠Trigger GCInputNames
- GCInput
Micro ⚠Gamepad ButtonA GCMicroGamepad
- The primary button for the microgamepad
- GCInput
Micro ⚠Gamepad Button Menu GCMicroGamepad
- The primary menu button for the microgamepad
- GCInput
Micro ⚠Gamepad ButtonX GCMicroGamepad
- The secondary button for the microgamepad
- GCInput
Micro ⚠Gamepad Dpad GCMicroGamepad
- The primary directional input surface for the directional gamepad
- GCInput
Pedal ⚠Accelerator GCInputNames
- GCInput
Pedal ⚠Brake GCInputNames
- GCInput
Pedal ⚠Clutch GCInputNames
- GCInput
Right ⚠Bumper GCInputNames
- Apple’s documentation
- GCInput
Right ⚠Paddle GCInputNames
- GCInput
Right ⚠Shoulder GCInputNames
- GCInput
Right ⚠Thumbstick GCInputNames
- GCInput
Right ⚠Thumbstick Button GCInputNames
- GCInput
Right ⚠Trigger GCInputNames
- GCInput
Shifter ⚠GCInputNames
- GCInput
Steering ⚠Wheel GCInputNames
- GCInput
Xbox ⚠Paddle Four GCInputNames
- GCInput
Xbox ⚠Paddle One GCInputNames
- GCInput
Xbox ⚠Paddle Three GCInputNames
- GCInput
Xbox ⚠Paddle Two GCInputNames
- GCKeyA⚠
GCKeyNames
- A set of strings that can be used to access keyboard buttons
- GCKey
Application ⚠GCKeyNames
- Apple’s documentation
- GCKeyB⚠
GCKeyNames
- Apple’s documentation
- GCKey
Backslash ⚠GCKeyNames
- Apple’s documentation
- GCKeyC⚠
GCKeyNames
- Apple’s documentation
- GCKey
Caps ⚠Lock GCKeyNames
- Apple’s documentation
- GCKey
Close ⚠Bracket GCKeyNames
- Apple’s documentation
- GCKey
Code ⚠Application GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Backslash GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Caps Lock GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Close Bracket GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Comma GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Delete Forward GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Delete OrBackspace GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Down Arrow GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Eight GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠End GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Equal Sign GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Escape GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F1 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F2 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F3 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F4 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F5 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F6 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F7 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F8 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F9 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F10 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F11 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F12 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F13 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F14 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F15 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F16 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F17 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F18 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F19 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠F20 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Five GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Four GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Grave Accent AndTilde GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Home GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Hyphen GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Insert GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International1 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International2 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International3 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International4 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International5 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International6 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International7 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International8 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠International9 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyA GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyB GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyC GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyD GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyE GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyF GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyG GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyH GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyI GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyJ GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyK GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyL GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyM GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyN GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyO GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyP GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyQ GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyR GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyS GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyT GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyU GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyV GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyW GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyX GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyY GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠KeyZ GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad0 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad1 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad2 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad3 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad4 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad5 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad6 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad7 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad8 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad9 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad Asterisk GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad Enter GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad Equal Sign GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad Hyphen GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad NumLock GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad Period GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad Plus GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Keypad Slash GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G1 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G2 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G3 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G4 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G5 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G6 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G7 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G8 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
CodeLAN ⚠G9 GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Left Alt GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Left Arrow GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Left Control GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠LeftGUI GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Left Shift GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Nine GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠NonUS Backslash GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠NonUS Pound GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠One GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Open Bracket GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Page Down GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Page Up GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Pause GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Period GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Power GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Print Screen GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Quote GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Return OrEnter GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Right Alt GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Right Arrow GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Right Control GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠RightGUI GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Right Shift GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Scroll Lock GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Semicolon GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Seven GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Six GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Slash GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Spacebar GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Tab GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Three GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Two GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠UpArrow GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Code ⚠Zero GCKeyCodes
andobjc2-core-foundation
- Apple’s documentation
- GCKey
Comma ⚠GCKeyNames
- Apple’s documentation
- GCKeyD⚠
GCKeyNames
- Apple’s documentation
- GCKey
Delete ⚠Forward GCKeyNames
- Apple’s documentation
- GCKey
Delete ⚠OrBackspace GCKeyNames
- Apple’s documentation
- GCKey
Down ⚠Arrow GCKeyNames
- Apple’s documentation
- GCKeyE⚠
GCKeyNames
- Apple’s documentation
- GCKey
Eight ⚠GCKeyNames
- Apple’s documentation
- GCKey
End ⚠GCKeyNames
- Apple’s documentation
- GCKey
Equal ⚠Sign GCKeyNames
- Apple’s documentation
- GCKey
Escape ⚠GCKeyNames
- Apple’s documentation
- GCKeyF⚠
GCKeyNames
- Apple’s documentation
- GCKeyF1⚠
GCKeyNames
- Apple’s documentation
- GCKeyF2⚠
GCKeyNames
- Apple’s documentation
- GCKeyF3⚠
GCKeyNames
- Apple’s documentation
- GCKeyF4⚠
GCKeyNames
- Apple’s documentation
- GCKeyF5⚠
GCKeyNames
- Apple’s documentation
- GCKeyF6⚠
GCKeyNames
- Apple’s documentation
- GCKeyF7⚠
GCKeyNames
- Apple’s documentation
- GCKeyF8⚠
GCKeyNames
- Apple’s documentation
- GCKeyF9⚠
GCKeyNames
- Apple’s documentation
- GCKey
F10 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F11 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F12 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F13 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F14 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F15 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F16 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F17 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F18 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F19 ⚠GCKeyNames
- Apple’s documentation
- GCKey
F20 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Five ⚠GCKeyNames
- Apple’s documentation
- GCKey
Four ⚠GCKeyNames
- Apple’s documentation
- GCKeyG⚠
GCKeyNames
- Apple’s documentation
- GCKey
Grave ⚠Accent AndTilde GCKeyNames
- Apple’s documentation
- GCKeyH⚠
GCKeyNames
- Apple’s documentation
- GCKey
Home ⚠GCKeyNames
- Apple’s documentation
- GCKey
Hyphen ⚠GCKeyNames
- Apple’s documentation
- GCKeyI⚠
GCKeyNames
- Apple’s documentation
- GCKey
Insert ⚠GCKeyNames
- Apple’s documentation
- GCKey
International1 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International2 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International3 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International4 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International5 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International6 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International7 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International8 ⚠GCKeyNames
- Apple’s documentation
- GCKey
International9 ⚠GCKeyNames
- Apple’s documentation
- GCKeyJ⚠
GCKeyNames
- Apple’s documentation
- GCKeyK⚠
GCKeyNames
- Apple’s documentation
- GCKey
Keypad0 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad1 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad2 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad3 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad4 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad5 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad6 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad7 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad8 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad9 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠Asterisk GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠Enter GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠Equal Sign GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠Hyphen GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠NumLock GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠Period GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠Plus GCKeyNames
- Apple’s documentation
- GCKey
Keypad ⚠Slash GCKeyNames
- Apple’s documentation
- GCKeyL⚠
GCKeyNames
- Apple’s documentation
- GCKeyLAN
G1 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G2 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G3 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G4 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G5 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G6 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G7 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G8 ⚠GCKeyNames
- Apple’s documentation
- GCKeyLAN
G9 ⚠GCKeyNames
- Apple’s documentation
- GCKey
Left ⚠Alt GCKeyNames
- Apple’s documentation
- GCKey
Left ⚠Arrow GCKeyNames
- Apple’s documentation
- GCKey
Left ⚠Control GCKeyNames
- Apple’s documentation
- GCKey
LeftGUI ⚠GCKeyNames
- Apple’s documentation
- GCKey
Left ⚠Shift GCKeyNames
- Apple’s documentation
- GCKeyM⚠
GCKeyNames
- Apple’s documentation
- GCKeyN⚠
GCKeyNames
- Apple’s documentation
- GCKey
Nine ⚠GCKeyNames
- Apple’s documentation
- GCKey
NonUS ⚠Backslash GCKeyNames
- Apple’s documentation
- GCKey
NonUS ⚠Pound GCKeyNames
- Apple’s documentation
- GCKeyO⚠
GCKeyNames
- Apple’s documentation
- GCKey
One ⚠GCKeyNames
- Apple’s documentation
- GCKey
Open ⚠Bracket GCKeyNames
- Apple’s documentation
- GCKeyP⚠
GCKeyNames
- Apple’s documentation
- GCKey
Page ⚠Down GCKeyNames
- Apple’s documentation
- GCKey
Page ⚠Up GCKeyNames
- Apple’s documentation
- GCKey
Pause ⚠GCKeyNames
- Apple’s documentation
- GCKey
Period ⚠GCKeyNames
- Apple’s documentation
- GCKey
Power ⚠GCKeyNames
- Apple’s documentation
- GCKey
Print ⚠Screen GCKeyNames
- Apple’s documentation
- GCKeyQ⚠
GCKeyNames
- Apple’s documentation
- GCKey
Quote ⚠GCKeyNames
- Apple’s documentation
- GCKeyR⚠
GCKeyNames
- Apple’s documentation
- GCKey
Return ⚠OrEnter GCKeyNames
- Apple’s documentation
- GCKey
Right ⚠Alt GCKeyNames
- Apple’s documentation
- GCKey
Right ⚠Arrow GCKeyNames
- Apple’s documentation
- GCKey
Right ⚠Control GCKeyNames
- Apple’s documentation
- GCKey
RightGUI ⚠GCKeyNames
- Apple’s documentation
- GCKey
Right ⚠Shift GCKeyNames
- Apple’s documentation
- GCKeyS⚠
GCKeyNames
- Apple’s documentation
- GCKey
Scroll ⚠Lock GCKeyNames
- Apple’s documentation
- GCKey
Semicolon ⚠GCKeyNames
- Apple’s documentation
- GCKey
Seven ⚠GCKeyNames
- Apple’s documentation
- GCKey
Six ⚠GCKeyNames
- Apple’s documentation
- GCKey
Slash ⚠GCKeyNames
- Apple’s documentation
- GCKey
Spacebar ⚠GCKeyNames
- Apple’s documentation
- GCKeyT⚠
GCKeyNames
- Apple’s documentation
- GCKey
Tab ⚠GCKeyNames
- Apple’s documentation
- GCKey
Three ⚠GCKeyNames
- Apple’s documentation
- GCKey
Two ⚠GCKeyNames
- Apple’s documentation
- GCKeyU⚠
GCKeyNames
- Apple’s documentation
- GCKey
UpArrow ⚠GCKeyNames
- Apple’s documentation
- GCKeyV⚠
GCKeyNames
- Apple’s documentation
- GCKeyW⚠
GCKeyNames
- Apple’s documentation
- GCKeyX⚠
GCKeyNames
- Apple’s documentation
- GCKeyY⚠
GCKeyNames
- Apple’s documentation
- GCKeyZ⚠
GCKeyNames
- Apple’s documentation
- GCKey
Zero ⚠GCKeyNames
- Apple’s documentation
- GCKeyboard
DidConnect ⚠Notification GCKeyboard
- Use these constants with NSNotificationCenter to listen to connection and disconnection events
- GCKeyboard
DidDisconnect ⚠Notification GCKeyboard
- Apple’s documentation
- GCMouse
DidBecome ⚠Current Notification GCMouse
- Use these constants with NSNotificationCenter to listen to a controller becoming the most recently used mouse. This is a good time to swap out UI to match the new current mouse, and unregister any handlers with the old current controller.
- GCMouse
DidConnect ⚠Notification GCMouse
- Use these constants with NSNotificationCenter to listen to connection and disconnection events.
- GCMouse
DidDisconnect ⚠Notification GCMouse
- Apple’s documentation
- GCMouse
DidStop ⚠Being Current Notification GCMouse
- Apple’s documentation
- GCPoint2
Zero ⚠GCTypes
- Apple’s documentation
- GCProduct
Category ⚠Arcade Stick GCProductCategories
- Apple’s documentation
- GCProduct
Category ⚠Coalesced Remote GCProductCategories
- If multiple remotes have been combined into one, the device will have the GCProductCategoryCoalescedRemote product category.
- GCProduct
Category ⚠Control Center Remote GCProductCategories
- Users can use Apple TV Remote controls in Control Center on an iOS or iPadOS device.
- GCProduct
Category ⚠Dual Sense GCProductCategories
- Game Controller Product Categories
- GCProduct
Category ⚠Dual Shock4 GCProductCategories
- Apple’s documentation
- GCProduct
CategoryHID ⚠GCProductCategories
- Apple’s documentation
- GCProduct
Category ⚠Keyboard GCProductCategories
- Apple’s documentation
- GCProduct
CategoryM ⚠Fi GCProductCategories
- Apple’s documentation
- GCProduct
Category ⚠Mouse GCProductCategories
- Keyboards and Mice Product Categories
- GCProduct
Category ⚠Siri Remote1st Gen GCProductCategories
- The Siri Remote (1st generation), or Apple TV Remote (1st generation), was first introduced in 2015. It features a Touch surface for touch navigation, and supports device motion.
- GCProduct
Category ⚠Siri Remote2nd Gen GCProductCategories
- The Siri Remote (2nd generation), or Apple TV Remote (2nd generation), was first introduced in 2021. It features a touch-enabled clickpad for navigation.
- GCProduct
Category ⚠Universal Electronics Remote GCProductCategories
- The Universal Electronics remote is an infrared and Bluetooth Low Energy remote designed to work with the Apple TV.
- GCProduct
Category ⚠Xbox One GCProductCategories
- Apple’s documentation
- GCRacing
Wheel ⚠DidConnect Notification GCRacingWheel
- Use these constants with NSNotificationCenter to listen to connection and disconnection events.
- GCRacing
Wheel ⚠DidDisconnect Notification GCRacingWheel
- Apple’s documentation
Traits§
- GCAxis2D
Input GCAxis2DInput
- An object conforming to
GCAxis2DInput
represents an input that produces a pair of normalized values - between [-1, 1] - along two axes with fixed origin. The origin - a value of 0 - corresponds the neutral state of the input. - GCAxis
Element GCAxisElement
andGCPhysicalInputElement
- Apple’s documentation
- GCAxis
Element Name GCInputNames
- Apple’s documentation
- GCAxis
Input GCAxisInput
- An object conforming to
GCAxisInput
represents an input that produces normalized values - between [-1, 1] - along an axis with a fixed origin. The origin - a value of 0 - corresponds the neutral state of the input. - GCButton
Element GCButtonElement
andGCPhysicalInputElement
- An object conforming to
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). - GCButton
Element Name GCInputNames
- Apple’s documentation
- GCDevice
GCDevice
- Apple’s documentation
- GCDevice
Physical Input GCDevicePhysicalInput
andGCDevicePhysicalInputState
- An objecting conforming to
GCDevicePhysicalInput
provides properties and methods for accessing common physical elements - buttons, thumbsticks, dpads, etc - of a device. - GCDevice
Physical Input State GCDevicePhysicalInputState
- An object conforming to
GCDevicePhysicalInputState
contains the state of a device’s physical inputs. This may be either the “live” physical input state if the same object also conforms toGCDevicePhysicalInput,
or a snapshot of the physical input state. - GCDevice
Physical Input State Diff GCDevicePhysicalInputStateDiff
- An object conforming to the
GCDevicePhysicalInputStateDiff
protocol contains the input state differences between the current and previousGCDevicePhysicalInputState
objects returned from the-nextInputState
method ofGCDevicePhysicalInput.
- GCDirection
PadElement GCDirectionPadElement
andGCPhysicalInputElement
- An object conforming to
GCDirectionPadElement
represents a four-way directional control element. - GCDirection
PadElement Name GCInputNames
- Apple’s documentation
- GCLinear
Input GCLinearInput
- An object conforming to
GCLinearInput
represents an input that produces normalized values in the unit interval - between [0, 1]. - GCPhysical
Input Element GCPhysicalInputElement
- The
GCPhysicalInputElement
protocol is a base protocol for specific types of elements that represent controls on a device. - GCPhysical
Input Element Name GCInputNames
- Apple’s documentation
- GCPhysical
Input Source GCPhysicalInputSource
- A description of the actual physical input element that a user interacts with to manipulate the the value of an input that is exposed to the app.
- GCPressed
State Input GCPressedStateInput
- An object conforming to
GCPressedStateInput
represents the pressed state of an element, typically a button. - GCRelative
Input GCRelativeInput
- An object conforming to
GCRelativeInput
represents an input that reports its change in position along an axis (delta) since the previous event. Relative inputs have no fixed origin from which a coordinate syatem can be defined. - GCSwitch
Element GCPhysicalInputElement
andGCSwitchElement
- An object conforming to
GCSwitchElement
represents a latching switch. A switch may be in one of several positions, and remains in its last position after the user stops interacting with it. - GCSwitch
Element Name GCInputNames
- Apple’s documentation
- GCSwitch
Position Input GCSwitchPositionInput
- Apple’s documentation
- GCTouched
State Input GCTouchedStateInput
- An object conforming to
GCTouchedStateInput
represents the touched state of an element. - NSValueGC
Types GCTypes
- Category “GCTypes” on
NSValue
.
Functions§
- GCExtended
Gamepad ⚠Snap Shot Data V100 FromNS Data Deprecated GCExtendedGamepadSnapshot
- Fills out a v100 snapshot from any compatible NSData source
- GCExtended
Gamepad ⚠Snapshot Data FromNS Data Deprecated GCExtendedGamepadSnapshot
- Fills out a snapshot from any compatible NSData source
- GCGamepad
Snap ⚠Shot Data V100 FromNS Data Deprecated GCGamepadSnapshot
- Fills out a v100 snapshot from any compatible NSData source
- GCInput
Back ⚠Left Button GCInputNames
- GCInput
Back ⚠Right Button GCInputNames
- GCMicro
Gamepad ⚠Snap Shot Data V100 FromNS Data Deprecated GCMicroGamepadSnapshot
- Fills out a v100 snapshot from any compatible NSData source
- GCMicro
Gamepad ⚠Snapshot Data FromNS Data Deprecated GCMicroGamepadSnapshot
- Fills out a snapshot from any compatible NSData source
- NSData
FromGC ⚠Extended Gamepad Snap Shot Data V100 Deprecated GCExtendedGamepadSnapshot
- Creates an NSData object from a v100 snapshot. If the version and size is not set in the snapshot the data will automatically have version 0x100 and sizeof(GCExtendedGamepadSnapShotDataV100) set as the values implicitly.
- NSData
FromGC ⚠Extended Gamepad Snapshot Data Deprecated GCExtendedGamepadSnapshot
- Creates an NSData object from a snapshot. If the version and size is not set in the snapshot the data will automatically have the version GCCurrentExtendedGamepadSnapshotDataVersion and sizeof(GCExtendedGamepadSnapshotData) set as the values implicitly.
- NSData
FromGC ⚠Gamepad Snap Shot Data V100 Deprecated GCGamepadSnapshot
- Creates an NSData object from a v100 snapshot. If the version and size is not set in the snapshot the data will automatically have version 0x100 and sizeof(GCGamepadSnapShotDataV100) set as the values implicitly.
- NSData
FromGC ⚠Micro Gamepad Snap Shot Data V100 Deprecated GCMicroGamepadSnapshot
- Creates an NSData object from a v100 snapshot. If the version and size is not set in the snapshot the data will automatically have version 0x100 and sizeof(GCMicroGamepadSnapShotDataV100) set as the values implicitly.
- NSData
FromGC ⚠Micro Gamepad Snapshot Data Deprecated GCMicroGamepadSnapshot
- Creates an NSData object from a snapshot. If the version and size is not set in the snapshot the data will automatically have version GCCurrentMicroGamepadSnapshotDataVersion and sizeof(GCMicroGamepadSnapshotData) set as the values implicitly.
- NSString
FromGC ⚠Point2 GCTypes
Type Aliases§
- GCController
Axis Value Changed Handler GCControllerAxisInput
andGCControllerElement
andblock2
- Set this block if you want to be notified when the value on this axis changes.
- GCController
Button Touched Changed Handler GCControllerButtonInput
andGCControllerElement
andblock2
- Set this block if you want to be notified when the touched state on this button changes.
- GCController
Button Value Changed Handler GCControllerButtonInput
andGCControllerElement
andblock2
- Set this block if you want to be notified when the value on this button changes.
- GCController
Direction PadValue Changed Handler GCControllerDirectionPad
andGCControllerElement
andblock2
- Set this block if you want to be notified when the value on this axis changes.
- GCController
Touchpad Handler GCControllerElement
andGCControllerTouchpad
andblock2
- Set this block if you want to be notified when an axis or the touch state changes.
- GCExtended
Gamepad Value Changed Handler GCControllerElement
andGCExtendedGamepad
andGCPhysicalInputProfile
andblock2
- Set this block if you want to be notified when a value on a element changed. If multiple elements have changed this block will be called for each element that changed. As elements in a collection, such as the axis in a dpad, tend to change at the same time and thus will only call this once with the collection as the element.
- GCGamepad
Value Changed Handler GCControllerElement
andGCGamepad
andGCPhysicalInputProfile
andblock2
- Apple’s documentation
- GCHaptics
Locality GCDeviceHaptics
- A GCHapticsLocality represents the locations of haptic actuators on a controller. You can create a haptic engine with a given GCHapticsLocality, and any patterns you send to that engine will play on all specified actuators.
- GCInput
Axis Name GCInputNames
- GCInput
Button Name GCInputNames
- GCInput
Direction PadName GCInputNames
- GCInput
Element Name GCInputNames
- GCInput
Switch Name GCInputNames
- GCKey
Code GCKeyCodes
andobjc2-core-foundation
- A set of low level key codes that can be used to access keyboard buttons
- GCKeyboard
Value Changed Handler GCControllerButtonInput
andGCControllerElement
andGCKeyCodes
andGCKeyboardInput
andGCPhysicalInputProfile
andblock2
andobjc2-core-foundation
- Set this block if you want to be notified when a value of a key changed. If multiple keys have changed this block will be called cd for each key that changed.
- GCMicro
Gamepad Value Changed Handler GCControllerElement
andGCMicroGamepad
andGCPhysicalInputProfile
andblock2
- Set this block if you want to be notified when a value on a element changed. If multiple elements have changed this block will be called for each element that changed. As elements in a collection, such as the axis in a dpad, tend to change at the same time and thus will only call this once with the collection as the element.
- GCMotion
Value Changed Handler GCMotion
andblock2
- Called whenever a motion value changed.
- GCMouse
Moved GCMouseInput
andGCPhysicalInputProfile
andblock2
- Set this block if you want to be notified when the mouse was moved