feat: window and input handling

This commit is contained in:
DarthMooMancer
2025-09-01 00:46:11 -04:00
parent 0d215201fc
commit 6cb55e0e1a
7 changed files with 82 additions and 3 deletions
+15 -1
View File
@@ -1,6 +1,20 @@
#include <iostream>
#include <thread>
#include "input.hpp"
#include "window.hpp"
int main() {
std::cout << "Hello World" << std::endl;
Input input;
Window window;
bool running = true;
std::thread input_thread(&Input::get_input, &input, std::ref(running));
while (running) {
std::cout << "Hello World" << std::endl;
window.update_display();
}
input_thread.join();
return 0;
}