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) {