projects
/
minwii.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Ce n'est pas une bonne idée d'utiliser des événements de code > NUMEVENTS.
[minwii.git]
/
src
/
app
/
events.py
1
import
pygame
2
base
=
pygame
.
USEREVENT
3
print
'events base :'
,
pygame
.
USEREVENT
4
TIMEOUT
=
base
+
1
5
NOTEON
=
base
+
2
6
NOTEOFF
=
base
+
3
7
NOTEEND
=
base
+
4
8
COLDOWN
=
base
+
5
9
COLUP
=
base
+
6
10
COLOVER
=
base
+
7
11
12
pygame
.
USEREVENT
=
COLOVER
13
if
pygame
.
USEREVENT
>
pygame
.
NUMEVENTS
:
14
pygame
.
NUMEVENTS
=
pygame
.
USEREVENT