added quit event

This commit is contained in:
Simon Pirkelmann 2019-08-12 15:52:38 +02:00
parent fa863d4e77
commit 55b468d314

View File

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