Game Controller Framework for visionOS Apps

Hi,

I was working on implementation of game controller input to my game. I've connected my Xbox controller and tried to do a test and it is working in an macOS application. I wanted to port it to my visionOS app but the app can't seem to recognize my gamepad inputs. But visionOS simulator can recognize because it is changing camera by gamepad input.

According to documentation GCController functions supports visionOS. Do the apps directly supports GC input? Or do I make mistake in my code?

Thanks

It isn't clear to me what your issue is exactly, but yes visionOS supports game controllers. Do you have a project that reproduces the issue?

Hi, you can direct game controller input to your app with the Simulator menu option: I/O > Input > Send Game Controller to Device. If you haven’t selected that option, you’ll see the behavior you described where the controller moves your perspective around in the scene.

Game Controller Framework for visionOS Apps
 
 
Q