aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/src/loopManager.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-03 10:49:19 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-03 10:49:19 +0100
commited8534e2d150428bcbc4a6df8940323ae8db2925 (patch)
treeb8c2402d13a4de190539e781c037c69d779cf95a /mwe/events/src/loopManager.cpp
parent5e833bba513d97c39f4e0d26b45a9095c32812a6 (diff)
fixed gameloop double window and event poc is working again
Diffstat (limited to 'mwe/events/src/loopManager.cpp')
-rw-r--r--mwe/events/src/loopManager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/mwe/events/src/loopManager.cpp b/mwe/events/src/loopManager.cpp
index 83ccfc3..f673d44 100644
--- a/mwe/events/src/loopManager.cpp
+++ b/mwe/events/src/loopManager.cpp
@@ -80,6 +80,14 @@ void LoopManager::setup() {
inputSystem->registerButton(testButton);
window.addUIObject(testButton);
+
+
+ TextInput* testInput = new TextInput(200,200);
+ testInput->x = 100;
+ testInput->y = 100;
+ testInput->backgroundColor = {20,50,80};
+ inputSystem->registerTextInput(testInput);
+ window.addUIObject(testInput);
}
void LoopManager::render() {
//fprintf(stderr, "**********render********** \n");