diff options
author | Gary Martin <gary@garycmartin.com> | 2009-08-23 18:51:18 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2009-08-23 18:51:18 (GMT) |
commit | 95d395e27a129fcec35057a76b68f6bf613ed472 (patch) | |
tree | 5b8f5b66ccfeeabebfbff0328ee205eebd9b5896 /activity.py | |
parent | da07cde3f683a2e52528d48ed4632b8ceff85744 (diff) |
Use a user event for stop/start rather than injecting a key event.
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 2 |
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: |