aboutsummaryrefslogtreecommitdiff
path: root/turtetris_master/usb_input.py
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-07-20 13:32:37 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-07-20 14:09:12 +0200
commitd776bc06babb22fbeb0a0ea513ab15163dcc9622 (patch)
treea9df6efa6b68fc8842690a2f000887f7109456d5 /turtetris_master/usb_input.py
parente51ab98da06992a2fb76bb9f6e54c59924b40ee5 (diff)
downloadturris-tetris-d776bc06babb22fbeb0a0ea513ab15163dcc9622.tar.gz
turris-tetris-d776bc06babb22fbeb0a0ea513ab15163dcc9622.tar.bz2
turris-tetris-d776bc06babb22fbeb0a0ea513ab15163dcc9622.zip
Make game area wider
Diffstat (limited to 'turtetris_master/usb_input.py')
-rw-r--r--turtetris_master/usb_input.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/turtetris_master/usb_input.py b/turtetris_master/usb_input.py
index e19a98e..856c653 100644
--- a/turtetris_master/usb_input.py
+++ b/turtetris_master/usb_input.py
@@ -63,5 +63,7 @@ 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]
self.state = new_state
return changed