10 lines
202 B
Python
10 lines
202 B
Python
import pygame
|
|
|
|
|
|
class InputManager:
|
|
QUIT = 0
|
|
|
|
def process_input(self):
|
|
for event in pygame.event.get():
|
|
if event.type == pygame.QUIT:
|
|
return InputManager.QUIT |