Layout codes of InputEvent/WindowEvent
This commit is contained in:
parent
3f5baa99d0
commit
b78d31d8a0
@ -1,11 +1,8 @@
|
||||
#ifndef HGL_IO_INPUT_EVENT_INCLUDE
|
||||
#define HGL_IO_INPUT_EVENT_INCLUDE
|
||||
#pragma once
|
||||
|
||||
#include<hgl/type/SortedSet.h>
|
||||
#include<hgl/io/event/InputEventSource.h>
|
||||
namespace hgl
|
||||
{
|
||||
namespace io
|
||||
namespace hgl::io
|
||||
{
|
||||
struct EventHeader
|
||||
{
|
||||
@ -99,6 +96,4 @@ namespace hgl
|
||||
return sub_event_proc[size_t(ies)].Delete(ie);
|
||||
}
|
||||
};//class InputEvent
|
||||
}//namespace io
|
||||
}//namespace hgl
|
||||
#endif//HGL_IO_INPUT_EVENT_INCLUDE
|
||||
}//namespace hgl::io
|
||||
|
@ -1,10 +1,7 @@
|
||||
#ifndef HGL_IO_INPUT_DEVICE_SOURCE_INCLUDE
|
||||
#define HGL_IO_INPUT_DEVICE_SOURCE_INCLUDE
|
||||
#pragma once
|
||||
|
||||
#include<hgl/TypeFunc.h>
|
||||
namespace hgl
|
||||
{
|
||||
namespace io
|
||||
namespace hgl::io
|
||||
{
|
||||
enum class InputEventSource
|
||||
{
|
||||
@ -19,6 +16,4 @@ namespace hgl
|
||||
|
||||
ENUM_CLASS_RANGE(Root,Joystick)
|
||||
};
|
||||
}//namespace io
|
||||
}//namespace hgl
|
||||
#endif//HGL_IO_INPUT_DEVICE_SOURCE_INCLUDE
|
||||
}//namespace hgl::io
|
||||
|
@ -36,7 +36,7 @@ namespace hgl
|
||||
WindowEvent():InputEvent(InputEventSource::Window){}
|
||||
virtual ~WindowEvent()=default;
|
||||
|
||||
EventProcResult OnEvent(const EventHeader &header,const uint64 data) override
|
||||
virtual EventProcResult OnEvent(const EventHeader &header,const uint64 data) override
|
||||
{
|
||||
wed=(WindowEventData *)&data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user