Open daniellandau opened 1 month ago
interesting use case! so just to confirm, when you connect a USB mouse to the phone, you're able to simultaneously use the mouse on the external display and your fingers on the touchscreen of the phone itself?
Yes, although it seems to be dependent on the order of plugging the display and the mouse in. Sometimes it goes to a state where the mouse cursor is also stuck on the phone screen. This is on Android 14 crDroid.
interesting!! thanks for the info, I'll look into this soon. slowly getting back into working on this after being busy
Could you attempt to use adb as described here to send inputs like you want to?
If it's not too much trouble, could you also check if /dev/uhid
is present on your system?
Just looking into which implementations of this are possible/most convenient right now. Thanks!
fyi: this can be tested without a physical external display if you enable both Force Desktop Mode (android 10+) and Emulate External Displays settings in Developer Settings on your phone
thanks! I actually looked for that earlier but ig somehow missed it, because I found it right now. might've not noticed a typo when I searched + just not seen it when I scrolled through settings.
It would be great if the code in this app could be easily extended to not send mouse movements out from the USB, but instead register to the local Android system as a connected emulated external mouse and that way the primary phone display could be used as a trackpad for an attached external display. When there's an external display, a USB mouse automatically shows a cursor only on the external display (when using Force Desktop mode from developer settings), but for example KDE Connect mouse receiver only shows a cursor on the primary phone display.