Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools.py b/tools.py
index 75a3440..c3877b9 100644
--- a/tools.py
+++ b/tools.py
@@ -48,6 +48,10 @@ class Tool(object):
if event.action == "stop_start_toggle":
# Stop/start simulation
self.game.world.run_physics = not self.game.world.run_physics
+ elif event.action == "focus_in":
+ self.game.in_focus = True
+ elif event.action == "focus_out":
+ self.game.in_focus = False
elif self.game.toolList.has_key(event.action):
self.game.setTool(event.action)
elif hasattr(event,"code"):