blob: 8239e48e2c70d7941e211805e0b0a2f70b360823 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "interfaces/publisher.hpp"
#include "interfaces/subscriber.hpp"
#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;
};
|