Mercurial > rinkhals
diff gamelib/gameboard.py @ 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 | 3dae0fc14009 |
children | 1689b43ed8be |
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: