aboutsummaryrefslogtreecommitdiff
path: root/src/client/callbackhandeler.hpp
blob: 0728b29cb67f376aa868a852c89aff692c85c847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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);
};

int errfunc(lua_State *L);
void pusherrorfunc(lua_State *L);
//GlobalEventReceiver::GlobalEventReceiver(IrrlichtDevice* d);