From 5455478ceb07500e0f91e4e26958b2b9b11bae89 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Tue, 3 Dec 2024 15:47:43 -0600 Subject: [PATCH] Test mouse --- libultraship | 2 +- src/port/Engine.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libultraship b/libultraship index 80c2c5e9c..d6a9e1f58 160000 --- a/libultraship +++ b/libultraship @@ -1 +1 @@ -Subproject commit 80c2c5e9c6a5681428f759100c2428c5e41f333c +Subproject commit d6a9e1f5811b679ce1a279b70b2455fd7132bdc0 diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 59d76cfb9..ff63ec50e 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -173,6 +173,9 @@ void GameEngine::ProcessGfxCommands(Gfx* commands) { if (wnd != nullptr) { wnd->SetTargetFps(CVarGetInteger("gInterpolationFPS", 30)); wnd->SetMaximumFrameLatency(1); + auto pos = wnd->GetMousePos(); + + SPDLOG_INFO("Mouse X: {} - Y: {}", pos.x, pos.y); } }