diff options
Diffstat (limited to 'Runtime/Events/InputEvent.h')
-rw-r--r-- | Runtime/Events/InputEvent.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Runtime/Events/InputEvent.h b/Runtime/Events/InputEvent.h index d19fbea..5502aea 100644 --- a/Runtime/Events/InputEvent.h +++ b/Runtime/Events/InputEvent.h @@ -46,7 +46,7 @@ enum EMouseButton { Mouse_MiddleButton = 3 }; -// 输入事件 +// 输入事件,是脚本层面接收和处理的事件 struct InputEvent : public LuaBind::INativeTable { EInputEventType type; @@ -66,8 +66,11 @@ struct InputEvent : public LuaBind::INativeTable bool use; + static InputEvent RepaintEvent(HWND window); + InputEvent(); InputEvent(UINT message, WPARAM wParam, LPARAM lParam, HWND window); + void Init(); void CastToTable(LuaBind::State& state) const override; void RestoreFromTable(LuaBind::State& state, int index) override; |