aboutsummaryrefslogtreecommitdiff
path: root/music_sampler.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-24 20:46:52 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-24 20:46:52 +0200
commitcd255f24c1a3b199c2b446537aff60be767676d4 (patch)
tree55108716bc56e8ef281a139522c6dd6203b1c011 /music_sampler.py
parent87f211fb622ef640249628b65d0bc8daca889f2c (diff)
downloadMusicSampler-cd255f24c1a3b199c2b446537aff60be767676d4.tar.gz
MusicSampler-cd255f24c1a3b199c2b446537aff60be767676d4.tar.zst
MusicSampler-cd255f24c1a3b199c2b446537aff60be767676d4.zip
Add checkmarks to the action list
Diffstat (limited to 'music_sampler.py')
-rw-r--r--music_sampler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/music_sampler.py b/music_sampler.py
index 6fed26b..42c01e3 100644
--- a/music_sampler.py
+++ b/music_sampler.py
@@ -48,7 +48,7 @@ while 1:
48 if event.type == pygame.KEYDOWN: 48 if event.type == pygame.KEYDOWN:
49 key = mapping.find_by_key_num(event.key) 49 key = mapping.find_by_key_num(event.key)
50 if key is not None and not key.disabled: 50 if key is not None and not key.disabled:
51 threading.Thread(name = "MSKeyAction", target=key.do_actions).start() 51 threading.Thread(name = "MSKeyAction", target=key.do_actions, args = [screen]).start()
52 threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start() 52 threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start()
53 elif event.type == pygame.MOUSEBUTTONUP: 53 elif event.type == pygame.MOUSEBUTTONUP:
54 key = mapping.find_by_collidepoint(pygame.mouse.get_pos()) 54 key = mapping.find_by_collidepoint(pygame.mouse.get_pos())