X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/f439fefd7ee0b44442268443f2fefb3d33a47fb8..baf4f2fe0e04d6b95c428813dd920b597031ec04:/src/app/events.py?ds=inline diff --git a/src/app/events.py b/src/app/events.py index 8e13a85..6b90d92 100755 --- a/src/app/events.py +++ b/src/app/events.py @@ -1,7 +1,15 @@ import pygame from sys import modules -events = ['TIMEOUT', 'NOTEON', 'NOTEOFF', 'NOTEEND', 'COLDOWN', 'COLUP', 'COLOVER'] +events = ['TIMEOUT', + 'NOTEON', + 'NOTEOFF', + 'NOTEEND', + 'COLDOWN', + 'COLUP', + 'COLOVER', + 'COLSTATECHANGE'] + eventNames = {} self = modules[__name__] @@ -33,3 +41,5 @@ pygame_events = [ for name in pygame_events : eventNames[getattr(pygame, name)] = name + +eventCodes = dict([v, k] for k, v in eventNames.items())