X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/ccd80f6896303234addbb0f619335b6e59df7746..4986d1d41239a54cd13b490ad72c3dc99793c8e8:/src/app/events.py?ds=sidebyside diff --git a/src/app/events.py b/src/app/events.py index dd6ac47..c27e951 100755 --- a/src/app/events.py +++ b/src/app/events.py @@ -1,6 +1,14 @@ -from pygame.locals import USEREVENT -TIMEOUT = USEREVENT + 1 -NOTEON = USEREVENT + 2 -NOTEOFF = USEREVENT + 3 -KEYDOWN = USEREVENT + 4 -KEYUP = USEREVENT + 5 +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