X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/7fa3a2ce5331c49d0df4ae103abc193e682d48cf..a73a4820f5dcb29350d623eaf9bdd27884dfb73e:/src/app/events.py diff --git a/src/app/events.py b/src/app/events.py index b271c1f..c27e951 100755 --- a/src/app/events.py +++ b/src/app/events.py @@ -1,2 +1,14 @@ -from pygame.locals import USEREVENT -TIMEOUT = USEREVENT + 1 +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