summaryrefslogtreecommitdiff
path: root/src/io/inputManager.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-06-12 21:41:41 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-06-13 20:22:51 +0800
commit6f7b994684032060f0a2d7af82f4f3572293b8d6 (patch)
tree793d328cbcd6761365267550b55db45aee9b21fc /src/io/inputManager.hpp
parent6a51ab4525c59e9fe2bdbd92493019b0a98c6b94 (diff)
internal!: organized internal structure, using cmake now
Diffstat (limited to 'src/io/inputManager.hpp')
-rw-r--r--src/io/inputManager.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/io/inputManager.hpp b/src/io/inputManager.hpp
new file mode 100644
index 0000000..a81e39d
--- /dev/null
+++ b/src/io/inputManager.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <ftxui/component/component.hpp>
+#include <memory>
+
+class CInputManager {
+ public:
+ CInputManager();
+ ~CInputManager();
+
+ void inputLoop();
+
+ void updateIO();
+
+ private:
+ std::string m_szInput;
+
+ ftxui::Component m_input;
+ ftxui::Component inputComponent;
+ ftxui::Component logComponent;
+ ftxui::Component container;
+
+ int bottomSize = 1;
+};
+inline std::unique_ptr<CInputManager> g_pInputManager;