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

"Reverse" input for some buttons #52

Open robbi-blechdose opened 6 years ago

robbi-blechdose commented 6 years ago

I have the following problem: Two new buttons I installed have the contact closed when not pressed, and open when pressed. Since retrogame expects the GPIOs to be low, it always generates a keypress when the button is not pressed, but not when it is.

Is there any way to "reverse" that input for those two buttons (and only for them, the rest are normal buttons)?