========================================
Android application which controls the mouse on Windows.
This is a merge of my very first two Android experiments on a real application ! Those are Android_WindowsRemote_UDP and Android_WindowsRemote_Bluetooth.
The goal of it is to control the mouse of a computer on Windows with the Android smartphone. The connection between Windows and Android can be either over Wifi or Bluetooth.
I use the json minimalistic library Jsmn. You just need to run CMake with no additional options. The server has been coded in C. It compiles with Visual Studio 2015 and has been tested on Windows 10.
The cursor cannot be moved within windows that have been started with higher privileges. Thus it is adivsed to run it as administrator.
I used the code sample provided by Microsoft there to get started with Bluetooth technology. The server should NOT work if you have a Broadcom Bluetooth device, since you have to use their own SDK.
I use Android Studio 2 to build it. Tested on Lollipop and Marshmallow Android.
With Bluetooth connection:
- ServerMouseController.exe --socket bluetooth
With UDP connection:
- ServerMouseController.exe --socket udp
With TCP connection:
- ServerMouseController.exe --socket tcp
-
Wifi: When using UDP protocol, some packets may be dropped. When using TCP protocol, cursor moving may not be optimal.
-
Bluetooth: To make it work correctly on Windows, do not forget to turn on Bluetooth, and I also had to allow Bluetooth devices to detect my PC (in Bluetooth's advanced parameters).
Start the app and configure it via the settings to enable Bluetooth or Wifi connection.
-
Wifi: Enable Wifi first :) otherwise you'll get errors.
-
Bluetooth: Enable Bluetooth and pair to the Windows device. Then in the app's settings you'll be able to select which paired device to communicate with.