System that handles input from keyboard and mouse, updating InputComponents and switching camera modes.
More...
#include <InputSystem.hpp>
|
| std::vector< Entity > | entities |
| | List of entities tracked by this system.
|
System that handles input from keyboard and mouse, updating InputComponents and switching camera modes.
◆ InputSystem()
Construct a new Input System object.
- Parameters
-
| reg | Reference to the ECS Registry. |
| renderer | Reference to the Vulkan Renderer. |
| editorMode | Reference to the Editor Mode State. |
◆ applyCursorMode()
| void InputSystem::applyCursorMode |
( |
| ) |
|
|
inline |
Configures GLFW cursor modes based on current fly/editor state.
◆ switchMode()
| void InputSystem::switchMode |
( |
double & | lastY, |
|
|
double & | lastX ) |
|
inline |
Toggles between editor/fly mode and handles cursor state cache.
- Parameters
-
| lastY | Reference to stored last Y position of the cursor. |
| lastX | Reference to stored last X position of the cursor. |
◆ update()
| void InputSystem::update |
( |
float | dt | ) |
|
|
inlineoverridevirtual |
Updates inputs for entities and handles cursor mode switches.
- Parameters
-
Implements System.
◆ editorMode
Reference to the editor mode state.
◆ registry
Reference to the entity registry.
◆ renderer
Reference to the renderer.
The documentation for this class was generated from the following file: