X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/d2d0e07ee1695d69a6954133c7997974b55c62c8..90331dd4caff60e9517c862101a37d1ae4ee00d1:/src/app/events.py 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)