C++ Library to control your mouse, using SerialPort library.
Just a common 5 pin joystick, USB cable and jumper wires:
Cmake:
Where is the source code: YourDirectory/MouseControlWithArduinoJoystick
Where to build the binaries: YourDirectory/MouseControlWithArduinoJoystick/build
Create the directory if applicable, configure then generate. Build all in Visual Studio.
Execute SerialPortExecutable.exe then uppload joystickSendData.ino to your Arduino.
Move the joystick to control the mouse cursor and push it to press right click button!
Just a beginner, this is probably due to my lack of telecommunications concepts.
Maybe better arduino->isConnected()
checks can solve this problem.
Serial buffer issue?