Using Game Controller

ALWAYS use when the user has any question about game controller input on Apple platforms — whether writing new code, porting from Windows, or modernizing an existing implementation. Trigger when working with the GCController API or GameController framework (controller lifecycle, connect/disconnect, current controller, player index, profile-based input, modern input API, polling, callbacks, haptics, rumble, adaptive triggers, motion/IMU, or on-screen controls), or when porting Windows controller code such as XInput, DirectInput, GameInput, RawInput, joystickapi.h, IOKit HID, IOHIDManager, or HidP_* APIs. Do NOT trigger for keyboard or mouse input.

apple af68f70 7 files · 119.2 KB Updated

File contents

apple/game-porting-toolkit/tree/main/game-porting-skills/skills/using-game-controller commit af68f70f26

Frequently asked questions

npx skillmds@latest add apple/using-game-controller