diff options
Diffstat (limited to 'src/interfaces/input.hpp')
-rw-r--r-- | src/interfaces/input.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/interfaces/input.hpp b/src/interfaces/input.hpp new file mode 100644 index 0000000..956ec4f --- /dev/null +++ b/src/interfaces/input.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include "interfaces/observable.hpp" + +class IInputHandler : public IObservable<char> +{ +public: + void listen() const override = 0; + + void attach(const char &event, Callback callback) override = 0; + + void notify(const char &event) const override = 0; + + virtual void enter_raw_mode() = 0; + + virtual void leave_raw_mode() = 0; +}; |