batman
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include "window.hpp"
|
||||
#include "input.hpp"
|
||||
|
||||
int main() {
|
||||
Window window;
|
||||
Input input;
|
||||
bool running = true;
|
||||
|
||||
std::thread input_thread(&Input::get_input, &input, std::ref(running));
|
||||
|
||||
while (running) {
|
||||
window.update_display();
|
||||
}
|
||||
|
||||
input_thread.join();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user