blob: a3019ad598b300e8b09787c57cdfb6820afb6526 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#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 auto get_currently_pressed_key() noexcept -> Key = 0;
};
|