comparison engine/core/eventchannel/eventmanager.cpp @ 694:ca1fcb96907d

Added pre- and post-rendering hooks for executing custom rendering code. * The functions FIFE::Engine.register(Pre|Post)RenderingHook are used to register custom rendering hooks to execute before and after thepredefined rendering functions in the main loop. * The rendering hook registration functions are also exposed to the Python bindings and accept any native C or Python functions.
author M. George Hansen <technopolitica@gmail.com>
date Fri, 10 Jun 2011 23:35:30 -1000
parents b312d170ab0c
children 47d58c7a95d7
comparison
equal deleted inserted replaced
690:9dce3dbd4fa9 694:ca1fcb96907d
432 432
433 dispatchKeyEvent(keyevt); 433 dispatchKeyEvent(keyevt);
434 } 434 }
435 435
436 void EventManager::processMouseEvent(SDL_Event event) { 436 void EventManager::processMouseEvent(SDL_Event event) {
437 if(dispatchSdlEvent(event)) 437 // FIXME Technomage 2011-02-02: Guichan just consumes all mouse events.
438 return; 438 // if(dispatchSdlEvent(event))
439 // return;
439 440
440 MouseEvent mouseevt; 441 MouseEvent mouseevt;
441 mouseevt.setSource(this); 442 mouseevt.setSource(this);
442 fillMouseEvent(event, mouseevt); 443 fillMouseEvent(event, mouseevt);
443 fillModifiers(mouseevt); 444 fillModifiers(mouseevt);