diff options
Diffstat (limited to 'Runtime/Events/InputEvent.h')
-rw-r--r-- | Runtime/Events/InputEvent.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Runtime/Events/InputEvent.h b/Runtime/Events/InputEvent.h index 164bfff..d19fbea 100644 --- a/Runtime/Events/InputEvent.h +++ b/Runtime/Events/InputEvent.h @@ -41,9 +41,9 @@ enum EModifiers { }; enum EMouseButton { - Mouse_LeftButton = 0, - Mouse_RightButton = 1, - Mouse_MiddleButton = 2 + Mouse_LeftButton = 1, + Mouse_RightButton = 2, + Mouse_MiddleButton = 3 }; // ÊäÈëʼþ @@ -66,11 +66,16 @@ struct InputEvent : public LuaBind::INativeTable bool use; + InputEvent(); InputEvent(UINT message, WPARAM wParam, LPARAM lParam, HWND window); void CastToTable(LuaBind::State& state) const override; + void RestoreFromTable(LuaBind::State& state, int index) override; -private: - bool isMouse, isKey; +}; -};
\ No newline at end of file +namespace Events +{
+ bool IsMouseEvent(EInputEventType type); + bool IsKeyEvent(EInputEventType type); +}
\ No newline at end of file |