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())