adafruit / Adafruit-Retrogame

Raspberry Pi GPIO-to-virtual-keyboard utility for classic game emulators
https://learn.adafruit.com/retro-gaming-with-raspberry-pi
355 stars 123 forks source link

Adds options to use joy bonnet as mouse #59

Closed dodrian closed 5 years ago

dodrian commented 5 years ago

When using my Raspberry Pi to give presentations, I found the joy bonnet helpful as a simple mouse.

Set JOYSTICK_AS_MOUSE to True and set buttons to use BTN_MOUSE and BTN_RIGHT events. Allows control over deadzone and sensitivity.

ladyada commented 5 years ago

cute! do you think you could split it into a new script? then they could run/install whichever they like :)

ladyada commented 5 years ago

thankx!