分离VKDebugOut以及VKProperties

This commit is contained in:
2019-11-06 20:52:09 +08:00
parent dbfa2ec526
commit 19be1c4d9f
21 changed files with 1788 additions and 241 deletions

68
inc/hgl/input/Event.h Normal file
View File

@@ -0,0 +1,68 @@
#pragma once
#include<hgl/type/DataType.h>
namespace hgl
{
namespace device_input
{
#pragma pack(push,1)
union InputEvent
{
struct
{
uint8 key;
}key_push;
struct
{
uint8 key;
}key_pop;
struct
{
uint16 x, y;
}mouse_move;
struct
{
uint8 key;
}mouse_key_push;
struct
{
uint8 key;
}mouse_key_pop;
struct
{
int16 x, y;
}mouse_wheel;
struct
{
int8 x, y;
}joystick_axis;
struct
{
uint8 key;
}joystick_key_push;
struct
{
uint8 key;
}joystick_key_pop;
struct
{
uint16 x, y;
uint16 power;
}wacom;
struct
{
u16char ch;
}char_input;
};//union InputEvent
#pragma pack(pop)
}//namespace device_input
}//namespace hgl