varunon9 / Remote-Control-PC

Control Laptop using Android. Remote control PC consists of android as well as desktop app written in Java to control laptop using phone.
MIT License
194 stars 97 forks source link

Touchpad issue #17

Open mechli opened 6 years ago

mechli commented 6 years ago

Hi, i've got a problem with touchpad. It works really slowly, it looks like it has delays. Tried to modify it, for example by changing coordinate type to float from int but it didn't help. I want the cursor to move smoothly. Can you help me? Regards

varunon9 commented 6 years ago

Touchpad should work smoothly. You might have some other issues-

  1. Are you connected to a very slow network? You can try directly connecting your lappy to android via phone hotspot.
  2. Check on android-studio logcat if you are getting some exceptions.
  3. You can try using a different device.
mechli commented 6 years ago
  1. I was connecting to fast home Wi-Fi, also to mobile hotspot network and nothing changed.
  2. There are no exceptions.
  3. Running application on 2 phones with different android versions and still were delays. Don't have another PC, but this one is not old, so i don't think so it could be the problem.
varunon9 commented 6 years ago

Please note that touchpad will not be as smooth as real mouse touchpad. But practically it is good to go. I am not sure to what level of smoothness you are expecting or if you are really getting unacceptable delays which we are not facing. If you could optimize this, your Pull Request is welcomed.

mechli commented 6 years ago

I will try to fix it. But when i use other apps from Google Play, touchpad works there smoothly, so this is not device problem but some optimization.