R-Type
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 {
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_ */
Key
Definition: Keyboard.hpp:28
InputType
Definition: Keyboard.hpp:16
Definition: AssetManager.hpp:15
Definition: InputComponent.hpp:17
std::map< Input::InputType, Input::Keyboard::Key > inputs
Definition: InputComponent.hpp:18
void addInput(Input::InputType inputType, Input::Keyboard::Key key)
Definition: InputComponent.hpp:20