Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/activity.py b/activity.py
index eafb155..b7f0d33 100644
--- a/activity.py
+++ b/activity.py
@@ -68,7 +68,7 @@ class PhysicsActivity(olpcgames.PyGameActivity):
return activity_toolbar
def stop_play_cb(self, button):
- pygame.event.post(olpcgames.eventwrap.Event(pygame.KEYDOWN, key=pygame.K_SPACE))
+ pygame.event.post(olpcgames.eventwrap.Event(pygame.USEREVENT, action="stop_start_toggle"))
self.stop_play_state = not self.stop_play_state
# Update button
if self.stop_play_state: