I think, this is a work-in-progress event system migration. What version of
CS do you use?
2009/4/15 Steven Truppe <[email protected]>
> 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.
> 7. // process as normal
> 8. csBaseEventHandler::HandleEvent(e);
> 9. // debug output to see all events
> 10. eID = e.GetName();
> 11. // get event name registry
> 12. csRef<iEventNameRegistry> name_reg =
> csQueryRegistry<iEventNameRegistry> (object_reg);
> 13. eString = (char*) name_reg->GetString(eID);
> 14. ReportInfo("HandleEvent: %s", eString);
> 15. return false;
> 16. }
>
> 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
>
>
--
Jocó
------------------------------------------------------------------------------
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