changeset 637:c27087877c84 pyntnclick

Mouse events propagate! Crashes galore!
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 12 Feb 2012 00:59:49 +0200
parents 2748d3afcae5
children d1ec9e739e23
files pyntnclick/gamescreen.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pyntnclick/gamescreen.py	Sun Feb 12 00:10:17 2012 +0200
+++ b/pyntnclick/gamescreen.py	Sun Feb 12 00:59:49 2012 +0200
@@ -99,11 +99,8 @@
 
     def mouse_move(self, event, widget):
         self.game.highlight_override = False
-
-    def _mouse_move(self, pos):
-        self.game.highlight_override = False
-        self.game.current_scene.mouse_move(pos)
-        self.game.old_pos = pos
+        self.game.current_scene.mouse_move(event.pos)
+        self.game.old_pos = event.pos
 
     def show_message(self, message, style=None):
         # Display the message as a modal dialog