Mercurial > rinkhals
diff gamelib/gameboard.py @ 541:450de9dfa106
Move gameboard event prodding into the widgets - better matches pgu internals
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 10:02:38 +0000 |
parents | f4d1b9ff9558 |
children | baf75d5ee50d |
line wrap: on
line diff
--- a/gamelib/gameboard.py Sat Nov 28 09:58:40 2009 +0000 +++ b/gamelib/gameboard.py Sat Nov 28 10:02:38 2009 +0000 @@ -40,6 +40,9 @@ self.gameboard.use_tool(e) elif e.type == MOUSEMOTION and self.gameboard.sprite_cursor: self.gameboard.update_sprite_cursor(e) + else: + return self.gameboard.event(e) + return True class AnimalPositionCache(object): @@ -836,6 +839,7 @@ self.stored_selections[e.key] = self.selected_chickens[:] else: self.restore_selection(self.stored_selections.get(e.key, [])) + return True elif e.type == KEYDOWN: mods = pygame.key.get_mods() if mods & KMOD_CTRL and self.selected_tool == constants.TOOL_SELECT_CHICKENS and self.selected_chickens: