Layout codes of InputEvent/WindowEvent

This commit is contained in:
2025-03-06 01:20:37 +08:00
parent 3f5baa99d0
commit b78d31d8a0
3 changed files with 93 additions and 103 deletions

View File

@@ -1,24 +1,19 @@
#ifndef HGL_IO_INPUT_DEVICE_SOURCE_INCLUDE
#define HGL_IO_INPUT_DEVICE_SOURCE_INCLUDE
#pragma once
#include<hgl/TypeFunc.h>
namespace hgl
namespace hgl::io
{
namespace io
enum class InputEventSource
{
enum class InputEventSource
{
Root=0,
Root=0,
OS,
Window,
OS,
Window,
Keyboard,
Mouse,
Joystick,
Keyboard,
Mouse,
Joystick,
ENUM_CLASS_RANGE(Root,Joystick)
};
}//namespace io
}//namespace hgl
#endif//HGL_IO_INPUT_DEVICE_SOURCE_INCLUDE
ENUM_CLASS_RANGE(Root,Joystick)
};
}//namespace hgl::io