]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler.py
Add checkmarks to the action list
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler.py
index 6fed26b05e8ddb5406c465b052a70eb9a5624f44..42c01e3adfa629c789cfd6f2ff570cb6106e8613 100644 (file)
@@ -48,7 +48,7 @@ while 1:
         if event.type == pygame.KEYDOWN:
             key = mapping.find_by_key_num(event.key)
             if key is not None and not key.disabled:
-                threading.Thread(name = "MSKeyAction", target=key.do_actions).start()
+                threading.Thread(name = "MSKeyAction", target=key.do_actions, args = [screen]).start()
                 threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start()
         elif event.type == pygame.MOUSEBUTTONUP:
             key = mapping.find_by_collidepoint(pygame.mouse.get_pos())