comparison gamescenecontroller.py @ 129:055a14d72184

When dragging an item while changing the map, the mouse cursor will now not reset.
author KarstenBock@gmx.net
date Fri, 07 Oct 2011 14:52:09 +0200
parents 452bbc3d915d
children 2241722311bf
comparison
equal deleted inserted replaced
128:a93b38d7e02b 129:055a14d72184
546 """Pauses the controller""" 546 """Pauses the controller"""
547 super(GameSceneController, self).pause(paused) 547 super(GameSceneController, self).pause(paused)
548 self.paused = paused 548 self.paused = paused
549 if paused: 549 if paused:
550 self.scroll_timer.stop() 550 self.scroll_timer.stop()
551 self.resetMouseCursor()
552 551
553 def onCommand(self, command): 552 def onCommand(self, command):
554 if(command.getCommandType() == fife.CMD_MOUSE_FOCUS_GAINED): 553 if(command.getCommandType() == fife.CMD_MOUSE_FOCUS_GAINED):
555 self.has_mouse_focus = True 554 self.has_mouse_focus = True
556 elif(command.getCommandType() == fife.CMD_MOUSE_FOCUS_LOST): 555 elif(command.getCommandType() == fife.CMD_MOUSE_FOCUS_LOST):