From 9ec8b03486f7cd9e5399097a82c650fc276cc935 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Tue, 3 Dec 2024 16:27:54 -0600 Subject: [PATCH] Added mouse press read --- src/port/Engine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index ff63ec50e..df7d45af7 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -176,6 +176,12 @@ void GameEngine::ProcessGfxCommands(Gfx* commands) { auto pos = wnd->GetMousePos(); SPDLOG_INFO("Mouse X: {} - Y: {}", pos.x, pos.y); + + for(int i = 0; i < 3; i++){ + if(wnd->GetMouseState((Ship::MouseBtn) i)){ + SPDLOG_INFO("Mouse button {} is pressed", i); + } + } } }