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
+7
View File
@@ -0,0 +1,7 @@
#ifndef GLOBALS_HPP
#define GLOBALS_HPP
constexpr int ROW = 10;
constexpr int COL = 10;
#endif
+10
View File
@@ -0,0 +1,10 @@
#ifndef INPUT_HPP
#define INPUT_HPP
// #include "elements.hpp"
struct Input {
char m_getch = ' ';
void get_input(bool &running);
};
#endif // INPUT_HPP
+12
View File
@@ -0,0 +1,12 @@
#ifndef WINDOW_HPP
#define WINDOW_HPP
#include <array>
#include "globals.hpp"
// #include "elements.hpp"
struct Window {
std::array<std::array<char, COL>, ROW> m_board = {};
void update_display();
};
#endif