Use the WiFi Mouse app/server: http://wifimouse.necta.us/
First, install the WiFi Mouse app on you iPhone: https://itunes.apple.com/app/id591076411?mt=8
Second, install the WiFi Mouse server downloaded from http://wifimouse.necta.us/
If you are using Fedora Linux, you need to convert the .deb package to a .rpm package first https://www.systutorials.com/qa/212/how-to-install-deb-packages-on-fedora .
Then, start the Mouse server.
On Linux, run
Open the firewall to allow connects to port 1978.
Then, open the WiFi Mouse app and connect to your laptop/PC’s IP and you will have the wireless mouse.