mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-07 14:13:58 -04:00
Added mouse press read
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user