Hi again,
i found the ::HandleEvent(iEvent &e) method that is called by CS
before event dispatching. The following code should help me to see all
the events that come in (with csevAllEvents):
- bool BsApplication::HandleEvent(iEvent &e)
- {
- csPrintf("HandleEvent\n");
- csEventID eID;
- char *eString;
- // process as normal
- csBaseEventHandler::HandleEvent(e);
- // debug output to see all events
- eID = e.GetName();
- // get event name registry
- csRef<iEventNameRegistry> name_reg =
csQueryRegistry<iEventNameRegistry> (object_reg);
- eString = (char*) name_reg->GetString(eID);
- ReportInfo("HandleEvent: %s", eString);
- return false;
- }
This works so far, but the output gives me alot of "deprecated" events:
HandleEvent: crystalspace.deprecated.preprocess
HandleEvent: crystalspace.frame
HandleEvent: crystalspace.deprecated.process
HandleEvent: crystalspace.deprecated.postprocess
HandleEvent: crystalspace.deprecated.finalprocess
HandleEvent: crystalspace.deprecated.preprocess
HandleEvent: crystalspace.frame
HandleEvent: crystalspace.deprecated.process
HandleEvent: crystalspace.deprecated.postprocess
HandleEvent: crystalspace.deprecated.finalprocess
HandleEvent: crystalspace.deprecated.preprocess
HandleEvent: crystalspace.frame
HandleEvent: crystalspace.deprecated.process
HandleEvent: crystalspace.deprecated.postprocess
HandleEvent: crystalspace.deprecated.finalprocess
BsApplication::OnKeyboard
HandleEvent: crystalspace.input.keyboard.down
HandleEvent: crystalspace.application.quit
HandleEvent: crystalspace.deprecated.preprocess
HandleEvent: crystalspace.frame
HandleEvent: crystalspace.deprecated.process
HandleEvent: crystalspace.deprecated.postprocess
HandleEvent: crystalspace.deprecated.finalprocess
BsApplication::OnExit()
BsApplication::~BsApplication()
Does someone know what this means ? Or am i doing something wrong ?
best regards,
Steven Truppe
|
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe:
mailto:[email protected]?subject=unsubscribe