Logitech now has a way to control 2 computers with one mouse called Logitech Flow.
First you will need a compatible mouse:
Then you will beed to setup the logitech software called ”options” on 2 computers
Next pair the mouse the usb dongle or bluetooth on to both computers.
Using the Options software, enable flow on both.
You will not only be able to move the mouse cruiser over, but also copy files over too.
This works on both mac and pc, you can mix mac with pc too.