import pygame
from sys import modules
-events = ['TIMEOUT',
- 'NOTEON',
+events = ['NOTEON',
'NOTEOFF',
'NOTEEND',
'COLDOWN',
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)
for name in pygame_events :
eventNames[getattr(pygame, name)] = name
+
+eventCodes = dict([v, k] for k, v in eventNames.items())