Skip to content

Commit dbd578a

Browse files
committed
fixed button hold-down vs button-pressed bug
1 parent 63850cf commit dbd578a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

joystick.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def getAction(self):
5959
# make sure NO button is down for reset
6060
someJoyButtonDown = False
6161
for i in range(0, self.myJoystick.get_numbuttons()):
62-
if self.myJoystick.get_button(i) is True:
62+
if self.myJoystick.get_button(i) == True:
6363
someJoyButtonDown = True
6464
self.joyButtonDown = someJoyButtonDown
6565

0 commit comments

Comments
 (0)