Search code examples
iosswiftxcodemacosgamecontroller

Is it possible to make a Game Controller vibrate using Xcode?


I've been using Apple's GameController framework so far, but there's no possibility to make the controller vibrate. I'm searching for something similar to Unity's Handheld.Vibrate(), but the last hours of research make me believe there's no simple API.

Is it somehow possible to make a Game Controller paired to macOS/iOS vibrate using Xcode? (Perhaps through directly sending signals to the controller)


Solution

  • Apple's response to my feature request via Feedback Assistant:

    Thanks for your feedback! For now, this issue behaves as intended.

    We love rumble in the Xbox Wireless Controller and Sony DualShock4 controllers, too - we think it would be great in games on iPhones, iPads, tvOS, and macOS, too.


    Looks like this is finally possible! There’ll be a talk about this on Wednesday. I will update this answer as soon as it’s available.