mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-05-05 10:59:45 +00:00
feat: Implement mouse grab configuration and handling in input and window services
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user