From c04f63f7be61782e0372153fc0fcbdaf0532d8d8 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Thu, 4 Dec 2025 19:43:41 +0100 Subject: [PATCH] correctly update mouse delta --- src/core.c3 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core.c3 b/src/core.c3 index c0441de..d4cb6d4 100644 --- a/src/core.c3 +++ b/src/core.c3 @@ -276,7 +276,9 @@ fn void? Ctx.frame_end(&ctx) } // 2. clear input fields + Point mdelta = ctx.current_input.mouse.pos - ctx.input.mouse.pos; ctx.input = ctx.current_input; + ctx.input.mouse.delta = mdelta; ctx.current_input.events = {}; ctx.current_input.mouse.scroll = {}; ctx.current_input.mouse.updated = BTN_NONE;