Skip to content

Add mouse support for tvOS#676

Open
kevincolten wants to merge 1 commit intomoonlight-stream:masterfrom
kevincolten:master
Open

Add mouse support for tvOS#676
kevincolten wants to merge 1 commit intomoonlight-stream:masterfrom
kevincolten:master

Conversation

@kevincolten
Copy link
Copy Markdown

Extended mouse callback registration to tvOS 14.0+ in ControllerSupport.m and enabled GCSupportsMouseAndKeyboard in the Moonlight TV Info.plist. Updated Bluetooth usage descriptions to reference Bluetooth mice instead of Citrix X1 mice.

https://developer.apple.com/documentation/gamecontroller/gcmouse

Extended mouse callback registration to tvOS 14.0+ in ControllerSupport.m and enabled GCSupportsMouseAndKeyboard in the Moonlight TV Info.plist. Updated Bluetooth usage descriptions to reference Bluetooth mice instead of Citrix X1 mice.
@kevincolten
Copy link
Copy Markdown
Author

@cgutman

@kevincolten
Copy link
Copy Markdown
Author

@cgutman Any additional things needed to get this out?

@andygrundman
Copy link
Copy Markdown

I tested this out and it doesn't seem to work for me. I added some logging to see the GCMouse connection and disconnection events, and it registers all the callbacks, but after that I get no more events from the mouse. I tested using a Logitech MX Vertical bluetooth mouse. I haven't looked at the code or docs much for mouse support so I might be doing something wrong. Should I be getting a mouse cursor in tvOS? I can use the scroll wheel in the settings menu for example, but there is no cursor. I am running the latest tvOS 26 beta.

In addition, I can't find any docs relating to GCSupportsMouseAndKeyboard and this key is also unknown in Xcode (it usually replaces a known key with more descriptive text). Can you link me to some more info?

andygrundman added a commit to andygrundman/moonlight-ios that referenced this pull request Sep 4, 2025
@bartleman
Copy link
Copy Markdown

I believe there is a controller profile for tracking mouse input (no icon on the screen) https://developer.apple.com/documentation/gamecontroller/gcmouseinput but I believe it's still in GCSupportsControllerUserInteraction. GCMouse.mouseInput I believe gives raw delta movement.

@Kevin-Medzorian
Copy link
Copy Markdown

@cgutman Any info on this? This PR would be really useful and is a very simple change…

@andygrundman I don't think there is supposed to be a visible cursor on tvOS. But since you are getting the scrolling to work, it seems like the mouse events are being registered.

Also I’m pretty sure “GCSupportsMouseAndKeyboard” isn’t necessary…

@yavin113
Copy link
Copy Markdown

Any updates on this? I am desperately waiting for this to be implemented

@enekodr
Copy link
Copy Markdown

enekodr commented Apr 19, 2026

Same question, are there any updates? I consider buying a Citrix mouse, but I wouldn't mind waiting for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants