aboutsummaryrefslogtreecommitdiff
path: root/src/client/callbackhandeler.hpp
blob: 3d4894f02153dc1db6ad3bfd27cb6793f9878616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
#include <stdlib.h>
#include <vector>
extern "C" {
  #include <lua.h>
  #include <lauxlib.h>
  #include <lualib.h>
}
#include <irrlicht.h>

using namespace irr;
using namespace gui;

//void registerguicallback(IGUIElement* element, EGUI_EVENT_TYPE event, bool (*func)(irr::SEvent));

void registerguielement(lua_State* L, gui::EGUI_EVENT_TYPE et, const char* funcname);

class GlobalEventReceiver : public irr::IEventReceiver{
public:
  GlobalEventReceiver(IrrlichtDevice* d);
  bool OnEvent(const irr::SEvent& e);
};
//GlobalEventReceiver::GlobalEventReceiver(IrrlichtDevice* d);