aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/InputSystem.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-27 14:25:32 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-27 14:25:32 +0100
commit7070f22d86057eafca3b82321d4146958c14a33e (patch)
tree9355ce7728a5ab9a9dbf964461b854591e7018d9 /src/crepe/system/InputSystem.h
parentad4de3ee60f699595bfd1950f88e5417fa29a0d5 (diff)
pr feedback
Diffstat (limited to 'src/crepe/system/InputSystem.h')
-rw-r--r--src/crepe/system/InputSystem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crepe/system/InputSystem.h b/src/crepe/system/InputSystem.h
index cd7ca77..8b47e49 100644
--- a/src/crepe/system/InputSystem.h
+++ b/src/crepe/system/InputSystem.h
@@ -1,11 +1,14 @@
#pragma once
+#include "facade/SDLContext.h"
+#include "util/OptionalRef.h"
+
#include "System.h"
-#include "../facade/SDLContext.h"
namespace crepe {
class Button;
+
class Transform;
/**
* \class InputSystem
@@ -57,7 +60,7 @@ private:
* \param transforms A list of transforms to search through.
* \return A pointer to the transform of the button, or nullptr if not found.
*/
- Transform *
+ OptionalRef<Transform>
find_transform_for_button(Button & button,
std::vector<std::reference_wrapper<Transform>> & transforms);