From 98b3d4a552eb471668f0f6e2d1fde804c9c29206 Mon Sep 17 00:00:00 2001 From: Caleb Burke Date: Sat, 19 Sep 2026 22:40:26 -0700 Subject: [PATCH] Formatting --- engine/include/sophia/event.hpp | 9 +++++---- engine/include/sophia/util/logger.hpp | 3 +-- engine/src/window.hpp | 12 ++++-------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/engine/include/sophia/event.hpp b/engine/include/sophia/event.hpp index 0ac3e37..213fa54 100644 --- a/engine/include/sophia/event.hpp +++ b/engine/include/sophia/event.hpp @@ -2,12 +2,11 @@ #include #include -#include -#include - #include #include #include +#include +#include #define BIT(x) (1 << (x)) @@ -116,7 +115,9 @@ class EventSystem { static_assert(std::is_base_of::value, "E must derive from Event"); EventType eventType = GET_EVENT_TYPE(E); - if (!this->eventDelegates.count(eventType)) { return; } + if (!this->eventDelegates.count(eventType)) { + return; + } try { EventDelegate& delegate = diff --git a/engine/include/sophia/util/logger.hpp b/engine/include/sophia/util/logger.hpp index cc3c17f..46d4bf1 100644 --- a/engine/include/sophia/util/logger.hpp +++ b/engine/include/sophia/util/logger.hpp @@ -12,9 +12,8 @@ #pragma once #include -#include - #include +#include namespace sophia::log { diff --git a/engine/src/window.hpp b/engine/src/window.hpp index ae0b950..672215d 100644 --- a/engine/src/window.hpp +++ b/engine/src/window.hpp @@ -3,11 +3,10 @@ #define GLFW_INCLUDE_VULKAN #include -#include -#include - #include #include +#include +#include namespace sophia { @@ -35,11 +34,8 @@ class Window { private: static void resizeCallback(GLFWwindow* window, int width, int height); - static void keyEventCallback(GLFWwindow* window, - int key, - int scancode, - int action, - int mods); + static void keyEventCallback(GLFWwindow* window, int key, int scancode, + int action, int mods); void initialize(); int width, height;