aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-08-23 22:13:06 -0700
committerGravatar rcoh <rcoh@mit.edu>2011-08-23 22:13:06 -0700
commit34671789ef127b47f648f8d8587ba46309980b87 (patch)
tree2d351e6e9e8baffbea4395d2131ad1641a0387f9
parentc5c1afaad86f4db6700bd540af9cd5e1999e10bc (diff)
parentcf8c0b22a9572c379050c0cf475ea583e2bc33f7 (diff)
Merge branch 'master' of github.com:rcoh/Burton-Conner-Tetris-Battle
-rw-r--r--ddrinput.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ddrinput.py b/ddrinput.py
index 01dc333..71dbfd3 100644
--- a/ddrinput.py
+++ b/ddrinput.py
@@ -22,7 +22,7 @@ class DdrInput(object):
"""
def __init__(self, debug_mode=True):
"""
- Debug mode prints inputs and also enables the keyboard as in input
+ Debug mode prints inputs from the ddr pads and also enables the keyboard as an input
"""
pygame.init() #safe to call multiple times
self.init_joysticks()
@@ -42,7 +42,7 @@ class DdrInput(object):
def poll(self):
"""
Returns a tuple of player index (0 or 1) and move,
- LEFT, RIGHT, UP, DOWN
+ LEFT, RIGHT, UP, DOWN. Returns None if there is no new input. Only returns 1 input at a time.
"""
event = pygame.event.poll()
player_move = None