Input

process_input_event(event: pygame.event, game_state: GameState)[source]

Extract the intent from the event and process them in the context of the game state. If an event can only be called in one way then no intent is generated and the event will directly go to the relevant action.

This covers the custom InputEventType and pygame pygame.KEYDOWN events.