From d2b36e6c65ec8126c0ebc96adb7e011e78a5eacc Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 1 Nov 2016 00:28:16 -0400 Subject: Initial commit --- src/client/callbackhandeler.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/client/callbackhandeler.hpp (limited to 'src/client/callbackhandeler.hpp') diff --git a/src/client/callbackhandeler.hpp b/src/client/callbackhandeler.hpp new file mode 100644 index 0000000..31c04f8 --- /dev/null +++ b/src/client/callbackhandeler.hpp @@ -0,0 +1,22 @@ +#include +#include +#include +extern "C" { + #include + #include + #include +} +#include + +using namespace irr; +using namespace gui; + +void registerguicallback(IGUIElement* element, EGUI_EVENT_TYPE event, void (*func)(irr::SEvent)); + + +class GlobalEventReceiver : public irr::IEventReceiver{ +public: + GlobalEventReceiver(IrrlichtDevice* d); + bool OnEvent(const irr::SEvent& e); +}; +//GlobalEventReceiver::GlobalEventReceiver(IrrlichtDevice* d); -- cgit v1.2.3-70-g09d2