From a73a4820f5dcb29350d623eaf9bdd27884dfb73e Mon Sep 17 00:00:00 2001 From: pin Date: Thu, 8 Apr 2010 12:25:46 +0000 Subject: [PATCH] =?utf8?q?Ce=20n'est=20pas=20une=20bonne=20id=C3=A9e=20d'u?= =?utf8?q?tiliser=20des=20=C3=A9v=C3=A9nements=20de=20code=20>=20NUMEVENTS?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@126 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/pywiiuse/pygame_wiimote.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pywiiuse/pygame_wiimote.py b/src/pywiiuse/pygame_wiimote.py index 26d9f9d..5540430 100755 --- a/src/pywiiuse/pygame_wiimote.py +++ b/src/pywiiuse/pygame_wiimote.py @@ -22,7 +22,6 @@ import time # events to use. Is there a way to get ones known to be unused? base = pygame.USEREVENT -print 'pygame_wiimote base :', pygame.USEREVENT WIIMOTE_BUTTON_PRESS = base + 1 WIIMOTE_BUTTON_RELEASE = base + 2 WIIMOTE_ACCEL = base + 3 @@ -33,10 +32,6 @@ NUNCHUK_ACCEL = base + 7 NUNCHUK_JOY = base + 8 WIIMOTE_STATUS = base + 9 WIIMOTE_DISCONNECT = base + 10 -pygame.USEREVENT = WIIMOTE_DISCONNECT -if pygame.USEREVENT > pygame.NUMEVENTS : - pygame.NUMEVENTS = pygame.USEREVENT - wiiuse = None # import within the thread, why do I have to do this? -- 2.20.1