8e13a851a7e7f3fc392fbcda0580a198557fee86
2 from sys
import modules
4 events
= ['TIMEOUT', 'NOTEON', 'NOTEOFF', 'NOTEEND', 'COLDOWN', 'COLUP', 'COLOVER']
6 self
= modules
[__name__
]
8 for i
, name
in enumerate(events
) :
9 eventType
= pygame
.USEREVENT
+i
10 eventNames
[eventType
] = name
11 setattr(self
, name
, eventType
)
34 for name
in pygame_events
:
35 eventNames
[getattr(pygame
, name
)] = name