aboutsummaryrefslogtreecommitdiff
path: root/src/engine/user
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-23 19:41:31 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commit486ca3846b46dc229e5807968578809766ec1991 (patch)
tree65a4b7a746d6305666af06f8a1975c76244085a7 /src/engine/user
parentb8e86ce397dc07320c02f6a5f592c7c6a4421c86 (diff)
feat: implement generations & multithreading
Diffstat (limited to 'src/engine/user')
-rw-r--r--src/engine/user/input.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/user/input.hpp b/src/engine/user/input.hpp
index 6a9edfd..51f3fcb 100644
--- a/src/engine/user/input.hpp
+++ b/src/engine/user/input.hpp
@@ -29,7 +29,9 @@ public:
void leave_raw_mode() noexcept override;
private:
- std::array<std::vector<std::shared_ptr<ISubscriber<Context>>>, CHAR_MAX> _subscribers;
+ std::array<std::vector<std::shared_ptr<ISubscriber<Context>>>,
+ static_cast<std::size_t>(CHAR_MAX * 2U)>
+ _subscribers;
std::shared_ptr<termios> _original_termios = nullptr;