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):

  1. bool BsApplication::HandleEvent(iEvent &e)
  2. {
  3.     csPrintf("HandleEvent\n");
  4.     csEventID eID;
  5.     char *eString;

  6.     // process as normal
  7.     csBaseEventHandler::HandleEvent(e);
  8.     // debug output to see all events
  9.     eID = e.GetName();
  10.     // get event name registry
  11.     csRef<iEventNameRegistry> name_reg = csQueryRegistry<iEventNameRegistry> (object_reg);
  12.     eString = (char*) name_reg->GetString(eID);
  13.     ReportInfo("HandleEvent: %s", eString);
  14.     return false;
  15. }
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

Reply via email to