feat: Implement mouse grab configuration and handling in input and window services

This commit is contained in:
2026-01-05 07:16:57 +00:00
parent ca9830b978
commit b8fe3acccf
15 changed files with 272 additions and 8 deletions
@@ -64,6 +64,12 @@ void ApplicationLoopService::HandleEvents() {
if (logger_) {
logger_->Trace("ApplicationLoopService", "HandleEvents");
}
if (inputService_) {
if (logger_) {
logger_->Trace("ApplicationLoopService", "HandleEvents", "resetInputState=true");
}
inputService_->ResetFrameState();
}
if (windowService_) {
windowService_->PollEvents();
}
@@ -86,10 +92,6 @@ void ApplicationLoopService::ProcessFrame(float deltaTime, float elapsedTime) {
"Entering");
}
if (inputService_) {
inputService_->ResetFrameState();
}
if (physicsService_) {
physicsService_->StepSimulation(deltaTime);
}