From 216e5e67b9a082640c432fb57de787ea44718f3a Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 10 Sep 2025 03:43:38 +1000 Subject: [PATCH] fix InputEvent struct --- platform.d | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) 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