added quit event

simple_control
Simon Pirkelmann 2019-08-12 15:52:38 +02:00
parent fa863d4e77
commit 55b468d314
1 changed files with 2 additions and 0 deletions

View File

@ -422,6 +422,8 @@ class RemoteController:
auto_control = not auto_control
if auto_control:
self.target = targets[current_target]
elif event.key == pygame.QUIT:
sys.exit(0)
if self.controlling: