aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/input.hpp
blob: 2e93b5d3f72441ec7ec63bef38a7357c7b80f637 (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:
	virtual ~IInputHandler() = 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;
};