R-Type
InputSystem.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** R-Type
4 ** File description:
5 ** InputSystem
6 */
7 
8 #ifndef INPUTSYSTEM_HPP_
9 #define INPUTSYSTEM_HPP_
10 #include "GameEngine.hpp"
11 #include "Registry.hpp"
13 #include "Keyboard.hpp"
14 
15 namespace GameEngine
16 {
18  {
19  public:
20  InputSystem(EventManager &eventManager) : _eventManager(eventManager){};
21  ~InputSystem() = default;
22 
24  void handleInput(std::size_t id, std::pair<Input::InputType, Input::Keyboard::Key> inputInfo);
25 
26  private:
27  EventManager &_eventManager;
28  };
29 } // namespace GameEngine
30 
31 #endif /* !InputSystem_HPP_ */
class to help create and manage all the event handlers
Definition: Event.hpp:135
Definition: InputSystem.hpp:18
void operator()(SparseArray< InputComponent > &inputs)
Definition: InputSystem.cpp:27
void handleInput(std::size_t id, std::pair< Input::InputType, Input::Keyboard::Key > inputInfo)
Definition: InputSystem.cpp:14
InputSystem(EventManager &eventManager)
Definition: InputSystem.hpp:20
Array which can have empty indexes.
Definition: SparseArray.hpp:19
Definition: AssetManager.hpp:15