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 struct InputEvent
{ {
Input key; Input key;
union bool pressed;
{ i32 x;
struct i32 y;
{ i32 rel_x;
bool pressed; i32 rel_y;
};
struct
{
i32 rel_x;
i32 rel_y;
u16 x;
u16 y;
};
};
} }
struct Inputs struct Inputs