aboutsummaryrefslogtreecommitdiff
path: root/turtetris_master/usb_input.py
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-07-20 14:17:28 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-07-20 14:53:28 +0200
commit580130d99c798c9fb0034f4daba96f8357927f40 (patch)
tree906c7e1d7053e47148b35106c9f6577dd304949e /turtetris_master/usb_input.py
parentd776bc06babb22fbeb0a0ea513ab15163dcc9622 (diff)
downloadturris-tetris-580130d99c798c9fb0034f4daba96f8357927f40.tar.gz
turris-tetris-580130d99c798c9fb0034f4daba96f8357927f40.tar.bz2
turris-tetris-580130d99c798c9fb0034f4daba96f8357927f40.zip
Add score
Diffstat (limited to 'turtetris_master/usb_input.py')
-rw-r--r--turtetris_master/usb_input.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/turtetris_master/usb_input.py b/turtetris_master/usb_input.py
index 856c653..dc01489 100644
--- a/turtetris_master/usb_input.py
+++ b/turtetris_master/usb_input.py
@@ -63,7 +63,6 @@ class Gamepad:
changed = {}
for key in ['left', 'right', 'up', 'down', 'select', 'start']:
changed[key] = new_state[key] and not self.state[key]
- if key == 'down':
- changed[key] = new_state[key]
+ # TODO repeat
self.state = new_state
return changed