tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
2.99k stars 249 forks source link

Support mouse input on Android devices #982

Open mtlynch opened 2 years ago

mtlynch commented 2 years ago

This USB-C splitter gives TinyPilot limited compatibility with Android phones.

One user reported that he was able to get video capture and keyboard input, but mouse input was not fully functional.

On a Pixel 4a, I'm able to reproduce the issue, though I'm not able to get video capture, as the Pixel 4a doesn't seem to support video output through USB-C.

I tried connecting a physical USB keyboard and mouse to the Pixel 4a through a USB hub, and both mouse and keyboard functioned normally on the phone. It's possible that Android only works with relative-positioned mice (TinyPilot's is absolute positioned). Or it's possible that there's something in TinyPilot's USB HID descriptor that's causing the Android to ignore its input.

man4567890 commented 2 years ago

I'm really interested in get it to do video output from an Android phone, how would you connect the phone and splitter, I cant wrap my mind around this, are there any diagrams available please

mtlynch commented 2 years ago

There's a good diagram in the forum showing how one user was able to achieve video capture.

It depends on the model of your Android device. Only certain devices support video output through the USB-C port.

man4567890 commented 2 years ago

Thank you, this is neat, I will order the splitter, Thanks again Michael