The Arduino Leonardo and Micro can emulate a mouse or a keyboard. In this tutorial we will use an Analog Joystick module and an Arcade button to simulate a mouse.
Check out our tutorials page at : https://brainy-bits.com/tutorials/ to get the schematic and more information on this tutorial.