blob: 0797c0d2a6e42cf768f05df4ee53b107e2d36f4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <cstddef>
#include <memory>
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IUserInputObserver
{
public:
using Key = char;
virtual ~IUserInputObserver() noexcept = default;
virtual void listen() noexcept = 0;
virtual bool is_key_pressed(Key key) noexcept = 0;
virtual void clear_currently_pressed() noexcept = 0;
};
|