Skip to content
Snippets Groups Projects
Commit 02a99145 authored by Annika Österdiekhoff's avatar Annika Österdiekhoff
Browse files

implement switching possibility

parent a4fe5a07
No related branches found
No related tags found
1 merge request!45Resolve "Controller Support"
Pipeline #46221 passed
......@@ -364,6 +364,10 @@ class PyGameGUI:
current_player_name, ActionType.INTERACT, InterActionData.STOP
)
self.send_action(action)
# switch button Y <-> 3
if event.button == 3 and not CONNECT_WITH_STUDY_SERVER:
if event.type == pygame.JOYBUTTONDOWN:
key_set.next_player()
def init_ui_elements(self):
self.manager = pygame_gui.UIManager((self.window_width, self.window_height))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment