blob: 956ec4fabc0b503a0ced57a89d7c1191a40356f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
};
|