engine: input added

This commit is contained in:
DarthMooMancer committed 2025-09-08 14:38:02 -04:00
1 parent 54bc1d7290
commit 63344fb83b
8 files changed
+50 -5

No files matched your search

+9 -1
View File
@@ -1,6 +1,14 @@
#include <iostream>
#include <thread>
#include "input.hpp"
int main() {
std::cout << "Hello World" << std::endl;
Input input;
bool running = true;
std::thread input_thread(&Input::get_input, &input, std::ref(running));
while (running) {
std::cout << "Hello World" << std::endl;
}
input_thread.join();
return 0;
}