R-Type
GameEngine
include
components
InputComponent.hpp
Go to the documentation of this file.
1
/*
2
** EPITECH PROJECT, 2023
3
** InputComponent.hpp
4
** File description:
5
** InputComponent
6
*/
7
8
#ifndef INPUTCOMPONENT_HPP_
9
#define INPUTCOMPONENT_HPP_
10
#include <cstdint>
11
#include <map>
12
#include "
Keyboard.hpp
"
13
14
namespace
GameEngine
15
{
16
struct
InputComponent
17
{
18
std::map<Input::InputType, Input::Keyboard::Key>
inputs
;
19
20
void
addInput
(
Input::InputType
inputType,
Input::Keyboard::Key
key) {
inputs
.insert({inputType, key}); };
21
};
22
}
// namespace GameEngine
23
#endif
/* !INPUTCOMPONENT_HPP_ */
Keyboard.hpp
GameEngine::Input::Keyboard::Key
Key
Definition:
Keyboard.hpp:28
GameEngine::Input::InputType
InputType
Definition:
Keyboard.hpp:16
GameEngine
Definition:
AssetManager.hpp:15
GameEngine::InputComponent
Definition:
InputComponent.hpp:17
GameEngine::InputComponent::inputs
std::map< Input::InputType, Input::Keyboard::Key > inputs
Definition:
InputComponent.hpp:18
GameEngine::InputComponent::addInput
void addInput(Input::InputType inputType, Input::Keyboard::Key key)
Definition:
InputComponent.hpp:20
Generated by
1.9.1