diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/callbackhandeler.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/client/callbackhandeler.cpp b/src/client/callbackhandeler.cpp index e24763d..133635c 100644 --- a/src/client/callbackhandeler.cpp +++ b/src/client/callbackhandeler.cpp @@ -128,17 +128,7 @@ bool GlobalEventReceiver::OnEvent(const SEvent& e){ switch(se.Event){ case EMIE_MOUSE_MOVED:{ - //printf("Mouse moved...\n"); - lua_getglobal(L,"GAME");//{} - lua_getfield(L,-1,"onMouseMove");//{},onMouseMove() - if(!lua_isnil(L,-1)){ - lua_pushnumber(L,se.X);//{},onMouseMove(),X - lua_pushnumber(L,se.Y);//{},onMouseMove(),Y - lua_call(L,2,0);//{} - lua_pop(L,1);// - }else{ - lua_pop(L,2); - } + callMouse(L,"onMouseMove",se.X,se.Y,se.Event); } break; case EMIE_LMOUSE_PRESSED_DOWN: |
