InputEvent改名为EventDispatch

This commit is contained in:
2025-06-27 03:10:07 +08:00
parent b02fc4d13c
commit f6c50e29d9
4 changed files with 22 additions and 22 deletions

View File

@@ -27,13 +27,13 @@ namespace hgl
constexpr size_t WindowEventDataBytes=sizeof(WindowEventData);
class WindowEvent:public InputEvent
class WindowEvent:public EventDispatch
{
WindowEventData *wed;
public:
WindowEvent():InputEvent(InputEventSource::Window){wed=nullptr;}
WindowEvent():EventDispatch(InputEventSource::Window){wed=nullptr;}
virtual ~WindowEvent()=default;
virtual EventProcResult OnEvent(const EventHeader &header,const uint64 data) override
@@ -50,7 +50,7 @@ namespace hgl
}
}
if(InputEvent::OnEvent(header,data)==EventProcResult::Break)
if(EventDispatch::OnEvent(header,data)==EventProcResult::Break)
return EventProcResult::Break;
return EventProcResult::Continue;
@@ -61,7 +61,7 @@ namespace hgl
virtual void OnResize(uint w,uint h){}
virtual void OnActive(bool){}
virtual void OnClose (){}
};//class WindowEvent:public InputEvent
};//class WindowEvent:public EventDispatch
}//namespace io
}//namespace hgl
#endif//HGL_IO_WINDOW_EVENT_INCLUDE