Mercurial > rinkhals
changeset 478:6974048bf04a
middle-click deselects chickens but not the tool.
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Wed, 25 Nov 2009 18:45:20 +0000 |
parents | c1439f6705a2 |
children | 1689b43ed8be |
files | gamelib/gameboard.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/gameboard.py Wed Nov 25 18:44:23 2009 +0000 +++ b/gamelib/gameboard.py Wed Nov 25 18:45:20 2009 +0000 @@ -270,6 +270,8 @@ if e.button == 3: # Right button self.set_selected_tool(None, None) self.toolbar.clear_tool() + elif e.button == 2: # Middle button + self.unselect_all() elif e.button != 1: # Left button return if self.selected_tool == constants.TOOL_SELL_CHICKEN: