Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-08-23 18:51:18 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-08-23 18:51:18 (GMT)
commit95d395e27a129fcec35057a76b68f6bf613ed472 (patch)
tree5b8f5b66ccfeeabebfbff0328ee205eebd9b5896 /activity.py
parentda07cde3f683a2e52528d48ed4632b8ceff85744 (diff)
Use a user event for stop/start rather than injecting a key event.
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: