mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-25 14:15:02 +00:00
feat: Integrate GUI input processing into input service and script service
This commit is contained in:
@@ -74,6 +74,12 @@ void ApplicationController::HandleEvents() {
|
||||
void ApplicationController::ProcessFrame(float deltaTime) {
|
||||
logger_->Trace("ApplicationController", "ProcessFrame", "deltaTime=" + std::to_string(deltaTime), "Entering");
|
||||
|
||||
// Reset input frame state
|
||||
auto inputService = registry_.GetService<services::IInputService>();
|
||||
if (inputService) {
|
||||
inputService->ResetFrameState();
|
||||
}
|
||||
|
||||
// Update physics
|
||||
auto physicsService = registry_.GetService<services::IPhysicsService>();
|
||||
if (physicsService) {
|
||||
@@ -86,6 +92,11 @@ void ApplicationController::ProcessFrame(float deltaTime) {
|
||||
sceneService->UpdateScene(deltaTime);
|
||||
}
|
||||
|
||||
// Update GUI input to script service
|
||||
if (inputService) {
|
||||
inputService->UpdateGuiInput();
|
||||
}
|
||||
|
||||
// Render frame
|
||||
// Temporarily disabled for testing
|
||||
// auto renderController = std::make_unique<RenderController>(registry_);
|
||||
|
||||
Reference in New Issue
Block a user