Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
input_manager.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
engine/core/iEngineService.h
>
4
#include <
engine/input/i_input_provider.h
>
5
6
#include <memory>
7
12
class
InputManager
:
public
IEngineService
{
13
public
:
14
[[nodiscard]]
const
IInputProvider
&
provider
()
const
;
15
void
set_provider
(std::unique_ptr<IInputProvider>
provider
)
noexcept
;
16
void
update
();
17
18
private
:
19
std::unique_ptr<IInputProvider> provider_ =
nullptr
;
20
};
IEngineService
Definition
iEngineService.h:4
IInputProvider
Interface for querying low-level keyboard input.
Definition
i_input_provider.h:20
InputManager
Centralized input manager that delegates to an external input provider.
Definition
input_manager.h:12
InputManager::provider
const IInputProvider & provider() const
InputManager::update
void update()
InputManager::set_provider
void set_provider(std::unique_ptr< IInputProvider > provider) noexcept
i_input_provider.h
iEngineService.h
include
engine
input
input_manager.h
Generated by
1.9.8