diff options
author | chai <chaifix@163.com> | 2018-10-20 15:50:06 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-20 15:50:06 +0800 |
commit | e9410bd371fc68169c57d2c52382948a0b083da4 (patch) | |
tree | d8f7e600b4ffd6a5c4c9a30f68f9ee74b8491c3b /src/lua/modules/event/event.cpp | |
parent | 58ad98213763348b49d8313675203b287a5442bb (diff) |
*修改名称空间
Diffstat (limited to 'src/lua/modules/event/event.cpp')
-rw-r--r-- | src/lua/modules/event/event.cpp | 7 |
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: |