diff --git a/platform.d b/platform.d index a028d26..d635697 100644 --- a/platform.d +++ b/platform.d @@ -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