SendEvent from within a static function

is it possible to call SendEvent from within a static function? i’m using an extenal library that has callback functions which are static, and i’d like to be able to fire an event as part of the callback, how do i do this?

You need a Urho3D object to send events. In order to send events from a static function then you must find a way to pass a piece of data (an instance of Urho3D::Object class) to your callback function.

cheers mate, got it sorted. i’m storing a static pointer to my class which inherits from object, and calling SendEvent that way :slight_smile: