Emulate a PS/2 mouse, Sample from the USB mouse, Powered by arduino.
-
Fork these original repositories, https://github.com/felis/USB_Host_Shield_2.0 and https://github.com/Harvie/ps2dev
-
Enter into the libraries Folder, For example, C:\Users\liuliu.mz\Documents\Arduino\libraries
-
Clone these forked repositories, For example, https://github.com/liumazi/USB_Host_Shield_2.0 and https://github.com/liumazi/ps2dev
-
Now, you can commit and push your modification, even make pull request
Modify the ps2dev.cpp, see: https://github.com/liumazi/ps2dev/commit/48763960160fa9e99c8319a35cd05d2c3884ba3a
Modify the hiduniversal.cpp, see: https://github.com/liumazi/USB_Host_Shield_2.0/commit/d97a048511d9e8a15517a73537d4026dd1c15054