Package scripts :: Package common :: Package listeners :: Script event_listener :: Class EventListener
[hide private]
[frames] | no frames]

Class EventListener

source code

    fife.fife.IKeyListener --+
                             |
fife.fife.ICommandListener --+
                             |
  fife.fife.IMouseListener --+
                             |
 fife.fife.ConsoleExecuter --+
                             |
                            EventListener

Class that receives all events and distributes them to the listeners

Instance Methods [hide private]
 
__init__(self, engine)
Initialize the instance
source code
 
addListener(self, listener_type, listener)
Adds a listener
source code
 
removeListener(self, listener_type, listener)
Removes a listener
source code
 
mousePressed(self, evt)
Called when a mouse button is pressed
source code
 
mouseReleased(self, evt)
Called when a mouse button is released
source code
 
mouseEntered(self, evt)
Called when a mouse enters a region
source code
 
mouseExited(self, evt)
Called when a mouse exits a region
source code
 
mouseClicked(self, evt)
Called after a mouse button is pressed and released
source code
 
mouseWheelMovedUp(self, evt)
Called when the mouse wheel has been moved up
source code
 
mouseWheelMovedDown(self, evt)
Called when the mouse wheel has been moved down
source code
 
mouseMoved(self, evt)
Called when when the mouse has been moved
source code
 
mouseDragged(self, evt)
Called when dragging the mouse
source code
 
keyPressed(self, evt)
Called when a key is being pressed
source code
 
keyReleased(self, evt)
Called when a key is being released
source code
 
onCommand(self, command)
Called when a command is executed
source code
 
onToolsClick(self)
Called when the tools button has been clicked
source code
 
onConsoleCommand(self, command)
Called when a console command is executed
source code
 
onWidgetAction(self, evt)
Called when a widget action is executed
source code