def onKeyEvent( self, isDown, key, modifiers ):
		if not BigBang.cursorOverGraphicsWnd():
			return 0
		
		handled = BigBang.camera().handleKeyEvent( isDown, key, modifiers )

		if not handled and isDown:
			handled = self.ownKeyEvent( key, modifiers )
		if not handled and BigBang.tool() != None:
			handled = BigBang.tool().handleKeyEvent( isDown, key, modifiers )
		return handled
Ejemplo n.º 2
0
    def onKeyEvent(self, isDown, key, modifiers):
        if not BigBang.cursorOverGraphicsWnd():
            return 0

        handled = BigBang.camera().handleKeyEvent(isDown, key, modifiers)

        if not handled and isDown:
            handled = self.ownKeyEvent(key, modifiers)
        if not handled and BigBang.tool() != None:
            handled = BigBang.tool().handleKeyEvent(isDown, key, modifiers)
        return handled
	def onPause( self ):
		self.cc.visible = 0
		self.cc.delAsView()
		if BigBang.tool() == self.chunkTool:
			BigBang.pushTool( self.chunkTool )
Ejemplo n.º 4
0
 def onPause(self):
     self.cc.visible = 0
     self.cc.delAsView()
     if BigBang.tool() == self.chunkTool:
         BigBang.pushTool(self.chunkTool)