aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/input.hpp
blob: b243a1697413e755d4e5c2531340a16680e985e5 (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() noexcept override = default;

	void listen() const noexcept override = 0;

	void attach(const char &event, Callback callback) noexcept override = 0;

	void notify(const char &event) const noexcept override = 0;

	virtual void enter_raw_mode() noexcept = 0;

	virtual void leave_raw_mode() noexcept = 0;
};