rohitsangwan01 / uni_control_hub

UniControlHub: Seamlessly Bridge Your Devices
http://www.rohitsangwan.in/apps/uni_control_hub/
GNU General Public License v3.0
94 stars 1 forks source link

Can't exit screen (Android + MacOS over USB) #32

Closed joepio closed 2 weeks ago

joepio commented 2 weeks ago

Describe the bug Entering the Android screen works fine, but exiting required me to remove the USB port.

To Reproduce Steps to reproduce the behavior:

  1. Connect Android device over USB
  2. Move cursor to android device
  3. Try to move cursor back to MacOS device
  4. Cursor stays there

Expected behavior I expected to be able to leave the Android screen where I entered it (in my case the top)

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

rohitsangwan01 commented 2 weeks ago

@joepio Thats kind of limitation right now, because once you are connected with android, android will think that a hardware is connected and it will show the cursor, We can remove the Cursor when screen left android screen by unregistering the AOA services

But then for android, it will be like we plugin in actual hardware Mouse in android when cursor enters from desktop to Android, and we remove the Mouse when cursor left android Not sure if this will be a good approach, because few android devices send notification when AOA device registers so if we keep Registering/Unregistering the AOA service, android will bloat with the notifications of A hardware Mouse or Keyboard is connecting and disconnecting

rohitsangwan01 commented 2 weeks ago

If you have any ideas or questions, please feel free to reopen the issue or start a discussion. Your input is always welcome!