280374fa63
While it is traditional to have buttons on pins that are pulled up, and have the button connect them to the ground, some CircuitPython boards (notably the CPX) have the button pins pulled low and the button connects them to VCC. This patch makes the gamepad only change the pin's pull if it wasn't already set when passed to the constructor, and also makes it consider a button pressed when its value is the opposite of its pull. |
||
---|---|---|
.. | ||
GamePad.c | ||
GamePad.h | ||
__init__.c | ||
__init__.h |