blob: b8679c74c8d61e0172d21e930072331df00cfbd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include "interfaces/observable.hpp"
class IInputHandler : public IObservable<char>
{
public:
~IInputHandler() override = default;
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;
};
|