summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a73a482)
-import pygame
-base = pygame.USEREVENT
-print 'events base :', pygame.USEREVENT
-TIMEOUT = base + 1
-NOTEON = base + 2
-NOTEOFF = base + 3
-NOTEEND = base + 4
-COLDOWN = base + 5
-COLUP = base + 6
-COLOVER = base + 7
-
-pygame.USEREVENT = COLOVER
-if pygame.USEREVENT > pygame.NUMEVENTS :
- pygame.NUMEVENTS = pygame.USEREVENT
+from pygame.locals import USEREVENT
+TIMEOUT = USEREVENT + 1
+NOTEON = USEREVENT + 2
+NOTEOFF = USEREVENT + 3
+NOTEEND = USEREVENT + 4
+COLDOWN = USEREVENT + 5
+COLUP = USEREVENT + 6
+COLOVER = USEREVENT + 7
\ No newline at end of file