Handles user input processing and mouse/keyboard state management.
More...
#include <input_system.hpp>
|
| static void | scrollCallback (GLFWwindow *window, double xoffset, double yoffset) |
| | GLFW scroll callback for mouse wheel input.
|
Handles user input processing and mouse/keyboard state management.
◆ InputSystem()
| solarsim::InputSystem::InputSystem |
( |
GLFWwindow * | window | ) |
|
Construct the input system with a GLFW window.
- Parameters
-
| window | Pointer to the GLFW window to capture input from |
◆ ~InputSystem()
| solarsim::InputSystem::~InputSystem |
( |
| ) |
|
◆ processInput()
| void solarsim::InputSystem::processInput |
( |
float | deltaTime | ) |
|
Process all input for the current frame.
- Parameters
-
| deltaTime | Time since last frame in seconds |
◆ scrollCallback()
| void solarsim::InputSystem::scrollCallback |
( |
GLFWwindow * | window, |
|
|
double | xoffset, |
|
|
double | yoffset ) |
|
staticprivate |
GLFW scroll callback for mouse wheel input.
- Parameters
-
| window | GLFW window that received the event |
| xoffset | Horizontal scroll offset |
| yoffset | Vertical scroll offset |
- Note
- Static method that forwards to instance methods
◆ toggleMouseCapture()
| void solarsim::InputSystem::toggleMouseCapture |
( |
| ) |
|
|
private |
Toggle mouse capture/release mode.
◆ justCaptured
| bool solarsim::InputSystem::justCaptured = true |
|
private |
Flag for handling initial capture state
◆ m_window
| GLFWwindow* solarsim::InputSystem::m_window |
|
private |
GLFW window handle for input processing
◆ mouseCaptured
| bool solarsim::InputSystem::mouseCaptured = true |
|
private |
Whether mouse is currently captured
The documentation for this class was generated from the following files: