aboutsummaryrefslogtreecommitdiff
path: root/ddrinput.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-08-29 15:49:27 -0400
committerGravatar rcoh <rcoh@mit.edu>2011-08-29 15:49:27 -0400
commit507b67d9190697f6324006116784c4e763e969fc (patch)
tree5a755b33a7bede95330b66949bf21031d67b7a18 /ddrinput.py
parentecee8bc8e2820357fca56975300bf73f492b01e6 (diff)
parentf9c82217cbbf4eb2d0f8a901af5cab3c7bad3853 (diff)
Merge branch 'master' of github.com:rcoh/Burton-Conner-Tetris-Battle
Conflicts: ddrinput.py
Diffstat (limited to 'ddrinput.py')
-rw-r--r--ddrinput.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ddrinput.py b/ddrinput.py
index 4d77ccc..6cad156 100644
--- a/ddrinput.py
+++ b/ddrinput.py
@@ -1,5 +1,7 @@
import pygame
import time
+=======
+
JOY_EVENT = 7
JOY_EVENT_2 = 10
KEY_EVENT = 2
@@ -49,7 +51,10 @@ class DdrInput(object):
for i in range(totaljoy):
m = pygame.joystick.Joystick(i)
m.init()
-
+
+ def reset(self):
+ pygame.event.clear()
+
def poll(self):
"""
Returns a tuple of player index (0 or 1) and move,