aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/event/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/event/event.cpp')
-rw-r--r--src/lua/modules/event/event.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lua/modules/event/event.cpp b/src/lua/modules/event/event.cpp
index 71b4a33..510afd7 100644
--- a/src/lua/modules/event/event.cpp
+++ b/src/lua/modules/event/event.cpp
@@ -9,7 +9,8 @@ namespace jin
namespace lua
{
- using namespace jin::input;
+ using namespace JinEngine;
+ using namespace JinEngine::Input;
/**
* Load event poll, return a iterator(a table).
@@ -74,13 +75,13 @@ namespace lua
case EventType::JOYBUTTONUP:
luax_setfieldstring(L, "type", e.type == EventType::JOYBUTTONDOWN ? "JoyButtonDown" : "JoyButtonUp");
luax_setfieldinteger(L, "which", e.jbutton.which);
- luax_setfieldstring(L, "button", input::getJoyButtonName(e.jbutton.button));
+ luax_setfieldstring(L, "button", Input::getJoyButtonName(e.jbutton.button));
break;
case EventType::JOYAXISMOTION:
luax_setfieldstring(L, "type", "JoyAxisMotion");
luax_setfieldinteger(L, "which", e.jaxis.which);
- luax_setfieldfstring(L, "axis", input::getJoyAxisName(e.jaxis.axis));
+ luax_setfieldfstring(L, "axis", Input::getJoyAxisName(e.jaxis.axis));
break;
case EventType::JOYBALLMOTION: