X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/f6e0db47250bd3666e1f46f22ed8153d77b46f2e..8a421d33328f7dd6d6bff38cc04f53cdf25de3a9:/src/app/events.py?ds=inline diff --git a/src/app/events.py b/src/app/events.py index 6b90d92..a67a416 100755 --- a/src/app/events.py +++ b/src/app/events.py @@ -1,8 +1,7 @@ import pygame from sys import modules -events = ['TIMEOUT', - 'NOTEON', +events = ['NOTEON', 'NOTEOFF', 'NOTEEND', 'COLDOWN', @@ -14,7 +13,7 @@ eventNames = {} self = modules[__name__] for i, name in enumerate(events) : - eventType = pygame.USEREVENT+i + eventType = pygame.USEREVENT + 1 + i eventNames[eventType] = name setattr(self, name, eventType)