
Using the Teensy 3.6 as a USB HID mouse and controlling the cursor with a 2 axis analog joystick module.
Sketch:
https://github.com/GadgetReboot/Arduino/tree/master/Teensy/USB_HID_Mouse
Original Sketch:
https://www.arduino.cc/en/Tutorial/JoystickMouseControl
Teensy Arduino Plugin:
https://www.pjrc.com/teensy/teensyduino.html
Patreon: https://www.patreon.com/gadgetreboot
Pinterest: https://www.pinterest.ca/GadgetReboot
Twitter: @GadgetReboot https://twitter.com/gadgetreboot
source