diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-13 15:40:52 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-13 15:40:52 +0100 |
commit | 9ce53b197953e66189febeaa434255b848647993 (patch) | |
tree | 1f7a3ae029754399c1e5fd23ab1266caec163012 /src/example/events.cpp | |
parent | 408eb1fb5932a683a65db79afed6a300e18db5c6 (diff) |
make format
Diffstat (limited to 'src/example/events.cpp')
-rw-r--r-- | src/example/events.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/example/events.cpp b/src/example/events.cpp index 210c42c..51c9a37 100644 --- a/src/example/events.cpp +++ b/src/example/events.cpp @@ -4,16 +4,16 @@ #include <crepe/system/ScriptSystem.h> #include <crepe/util/log.h> +#include <crepe/api/BehaviorScript.h> +#include <crepe/api/Config.h> #include <crepe/api/Event.h> #include <crepe/api/EventManager.h> +#include <crepe/api/GameObject.h> #include <crepe/api/IKeyListener.h> #include <crepe/api/IMouseListener.h> -#include <crepe/api/BehaviorScript.h> -#include <crepe/api/Config.h> -#include <crepe/api/GameObject.h> +#include <crepe/api/KeyCodes.h> #include <crepe/api/Script.h> #include <crepe/api/Transform.h> -#include <crepe/api/KeyCodes.h> using namespace crepe; using namespace std; @@ -54,13 +54,13 @@ class MyScript : public Script, public IKeyListener, public IMouseListener { class TestKeyListener : public IKeyListener { public: bool on_key_pressed(const KeyPressEvent & event) override { - std::cout << "TestKeyListener: Key Pressed - Code: " << static_cast<int>(event.key) - << std::endl; + std::cout << "TestKeyListener: Key Pressed - Code: " + << static_cast<int>(event.key) << std::endl; return true; // Return true if the listener should remain active } bool on_key_released(const KeyReleaseEvent & event) override { - std::cout << "TestKeyListener: Key Released - Code: " << static_cast<int>(event.key) - << std::endl; + std::cout << "TestKeyListener: Key Released - Code: " + << static_cast<int>(event.key) << std::endl; return true; } }; |