From 4a1ba134127fc5fef806bcf29a5ecb28da1fa6ca Mon Sep 17 00:00:00 2001 From: pin Date: Thu, 8 Apr 2010 12:28:36 +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@127 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/app/events.py | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/app/events.py b/src/app/events.py index c27e951..02444b0 100755 --- a/src/app/events.py +++ b/src/app/events.py @@ -1,14 +1,8 @@ -import pygame -base = pygame.USEREVENT -print 'events base :', pygame.USEREVENT -TIMEOUT = base + 1 -NOTEON = base + 2 -NOTEOFF = base + 3 -NOTEEND = base + 4 -COLDOWN = base + 5 -COLUP = base + 6 -COLOVER = base + 7 - -pygame.USEREVENT = COLOVER -if pygame.USEREVENT > pygame.NUMEVENTS : - pygame.NUMEVENTS = pygame.USEREVENT +from pygame.locals import USEREVENT +TIMEOUT = USEREVENT + 1 +NOTEON = USEREVENT + 2 +NOTEOFF = USEREVENT + 3 +NOTEEND = USEREVENT + 4 +COLDOWN = USEREVENT + 5 +COLUP = USEREVENT + 6 +COLOVER = USEREVENT + 7 \ No newline at end of file -- 2.20.1