summaryrefslogtreecommitdiff
path: root/Runtime/Events
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Events')
-rw-r--r--Runtime/Events/InputEvent.cpp9
-rw-r--r--Runtime/Events/InputEvent.h3
-rw-r--r--Runtime/Events/KeyCode.h3
3 files changed, 14 insertions, 1 deletions
diff --git a/Runtime/Events/InputEvent.cpp b/Runtime/Events/InputEvent.cpp
index ac41c94..e062bc2 100644
--- a/Runtime/Events/InputEvent.cpp
+++ b/Runtime/Events/InputEvent.cpp
@@ -1,12 +1,19 @@
#include "InputEvent.h"
+InputEvent::InputEvent(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+
+}
+
void InputEvent::CastToTable(LuaBind::State& state)
{
lua_newtable(state);
int table = state.GetTop();
+ // "type"
lua_pushnumber(state, type);
lua_setfield(state, table, "type");
+ // "mousePosition"
-}
+} \ No newline at end of file
diff --git a/Runtime/Events/InputEvent.h b/Runtime/Events/InputEvent.h
index 5a5ed36..6069c85 100644
--- a/Runtime/Events/InputEvent.h
+++ b/Runtime/Events/InputEvent.h
@@ -1,5 +1,6 @@
#pragma once
+#include <windows.h>
#include "Runtime/Lua/LuaHelper.h"
#include "Runtime/Math/Math.h"
@@ -49,6 +50,8 @@ struct InputEvent : public LuaBind::INativeTable
bool use;
+ InputEvent(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
+
void CastToTable(LuaBind::State& state) override;
}; \ No newline at end of file
diff --git a/Runtime/Events/KeyCode.h b/Runtime/Events/KeyCode.h
new file mode 100644
index 0000000..96786d7
--- /dev/null
+++ b/Runtime/Events/KeyCode.h
@@ -0,0 +1,3 @@
+#pragma once
+
+