From 123bb31f5041a93d1b31052e17bf4a4d8e2418bb Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Tue, 10 Mar 2026 03:05:10 +0100 Subject: [PATCH] initalization --- implementations/Crafter.Graphics-Window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/implementations/Crafter.Graphics-Window.cpp b/implementations/Crafter.Graphics-Window.cpp index a7c8e2a..8523190 100644 --- a/implementations/Crafter.Graphics-Window.cpp +++ b/implementations/Crafter.Graphics-Window.cpp @@ -549,6 +549,10 @@ Window::Window(std::uint32_t width, std::uint32_t height) : width(width), height submitInfo.pSignalSemaphores = &semaphores.renderComplete; submitInfo.pNext = VK_NULL_HANDLE; #endif + + lastMousePos = {0,0}; + mouseDelta = {0,0}; + currentMousePos = {0,0}; } void Window::SetTitle(const std::string_view title) {