Add mouse support for tvOS#676
Conversation
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.
|
@cgutman Any additional things needed to get this out? |
|
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 |
|
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. |
|
@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… |
|
Any updates on this? I am desperately waiting for this to be implemented |
|
Same question, are there any updates? I consider buying a Citrix mouse, but I wouldn't mind waiting for this |
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