Post

Replies

Boosts

Views

Activity

Comment on GCMouse causes onDisappear to not run after dismissImmersiveSpace?
Another thing, when I call print(GCMouse.mice()) inside the immersive space, it returns an empty array which is incorrect. I threw another print at the ToggleImmersiveSpace button before the call to openImmersiveSpace, and it shows an empty array when the button is pressed, and then at the second print statement (the same one from before that is still inside the RealityView body closure) it correctly shows that their is a mouse connected. Also the onDisappear is able to run correctly.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
Comment on Is it possible to stop game controllers from interacting with OS?
Unfortunately, remapping may not be sufficient. There seems to be an issue with the joy cons and I have filed a bug in feedback assistant. I was hoping it was related to this question but maybe not. The issue is that none of the controller inputs work when the gaze is directed at any visionOS window. I had assumed it was related to the joy con being used to control said window but if there is no way to deactivate that, then it might be a bug.
Topic: Graphics & Games SubTopic: General Tags:
Mar ’25