From 55b468d3144ceb5e44f55eaf118b73eea71535f4 Mon Sep 17 00:00:00 2001 From: spirkelmann Date: Mon, 12 Aug 2019 15:52:38 +0200 Subject: [PATCH] added quit event --- remote_control/position_controller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/remote_control/position_controller.py b/remote_control/position_controller.py index 472a9f6..3c5b318 100644 --- a/remote_control/position_controller.py +++ b/remote_control/position_controller.py @@ -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: