diff options
| author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-08 20:05:51 +0100 | 
|---|---|---|
| committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-08 20:05:51 +0100 | 
| commit | 2c698f3b6d61fe7a494c9e88620e427b5059cee2 (patch) | |
| tree | 653f1d0c41309345e4756d037a357c7de42681c4 /src | |
| parent | cc1b36f4f0a20695bcfc5c16c853cb32312fe70c (diff) | |
make format
Diffstat (limited to 'src')
| -rw-r--r-- | src/crepe/api/LoopManager.cpp | 6 | ||||
| -rw-r--r-- | src/crepe/manager/LoopTimerManager.cpp | 5 | 
2 files changed, 5 insertions, 6 deletions
| diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp index d17aee1..922e66b 100644 --- a/src/crepe/api/LoopManager.cpp +++ b/src/crepe/api/LoopManager.cpp @@ -27,10 +27,10 @@ LoopManager::LoopManager() {  		[this](const ShutDownEvent & event) { return this->on_shutdown(event); });  } -void LoopManager::process_input() {  -	this->get_system<InputSystem>().update();  +void LoopManager::process_input() { +	this->get_system<InputSystem>().update();  	this->event_manager.dispatch_events(); -	} +}  void LoopManager::start() {  	this->setup(); diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp index 5d4545f..9d9897d 100644 --- a/src/crepe/manager/LoopTimerManager.cpp +++ b/src/crepe/manager/LoopTimerManager.cpp @@ -82,10 +82,9 @@ void LoopTimerManager::enforce_frame_rate() {  double LoopTimerManager::get_lag() const {  	return (this->elapsed_time - this->elapsed_fixed_time).count();  } -double LoopTimerManager::get_scaled_fixed_delta_time() const{ +double LoopTimerManager::get_scaled_fixed_delta_time() const {  	return this->fixed_delta_time.count() * this->time_scale;  }  void LoopTimerManager::set_fixed_delta_time(int seconds) { -    this->fixed_delta_time = std::chrono::duration<double>(seconds); +	this->fixed_delta_time = std::chrono::duration<double>(seconds);  } - |