import pygame class InputManager: QUIT = 0 def process_input(self): for event in pygame.event.get(): if event.type == pygame.QUIT: return InputManager.QUIT