X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/46f3ffd7fdde386f41020171b5733e55a8e64a85..d3b1dcc8991d9b0110133abe6eeb43f69848a78d:/src/minwii/events.py?ds=inline diff --git a/src/minwii/events.py b/src/minwii/events.py index a67a416..877be75 100755 --- a/src/minwii/events.py +++ b/src/minwii/events.py @@ -7,13 +7,16 @@ events = ['NOTEON', 'COLDOWN', 'COLUP', 'COLOVER', - 'COLSTATECHANGE'] + 'COLSTATECHANGE', + 'SONGEND'] eventNames = {} self = modules[__name__] for i, name in enumerate(events) : eventType = pygame.USEREVENT + 1 + i + if eventType >= pygame.NUMEVENTS : + eventType = eventType + 1 eventNames[eventType] = name setattr(self, name, eventType)