Bridges input between GLFW and the Engine's InputManager.
More...
#include <InputBridge.hpp>
|
| double | x = 0.0 |
| | Current X position of the mouse.
|
| double | y = 0.0 |
| | Current Y position of the mouse.
|
Bridges input between GLFW and the Engine's InputManager.
Handles fetching input from GLFW and updating the CoreEngine's input system.
◆ fetchGLFWInput()
Fetches input events directly from GLFW and updates the CoreEngine input state.
- Parameters
-
| core | Reference to the CoreEngine instance. |
| app | Reference to the Application instance. |
◆ getMouseX()
| double Runtime::InputBridge::getMouseX |
( |
| ) |
const |
|
inline |
Gets the current X-coordinate of the mouse.
- Returns
- double Mouse X position.
◆ getMouseY()
| double Runtime::InputBridge::getMouseY |
( |
| ) |
const |
|
inline |
Gets the current Y-coordinate of the mouse.
- Returns
- double Mouse Y position.
◆ init()
| void Runtime::InputBridge::init |
( |
| ) |
|
Initializes the input bridge. Sets up any required internal state.
◆ update()
Updates the input system for the current frame.
- Parameters
-
| core | Reference to the CoreEngine instance. |
| app | Reference to the Application instance. |
| double Runtime::InputBridge::x = 0.0 |
|
protected |
Current X position of the mouse.
| double Runtime::InputBridge::y = 0.0 |
|
protected |
Current Y position of the mouse.
The documentation for this class was generated from the following file: