fix InputEvent struct

This commit is contained in:
Matthew 2025-09-10 03:43:38 +10:00
parent 504219aefb
commit 216e5e67b9

View File

@ -58,20 +58,11 @@ import core.stdc.string : strlen;
struct InputEvent
{
Input key;
union
{
struct
{
bool pressed;
};
struct
{
i32 rel_x;
i32 rel_y;
u16 x;
u16 y;
};
};
bool pressed;
i32 x;
i32 y;
i32 rel_x;
i32 rel_y;
}
struct Inputs