My Project
Loading...
Searching...
No Matches
Runtime::InputBridge Class Reference

Bridges input between GLFW and the Engine's InputManager. More...

#include <InputBridge.hpp>

Public Member Functions

void init ()
 Initializes the input bridge. Sets up any required internal state.
void update (Engine::CoreEngine &core, Engine::Application &app)
 Updates the input system for the current frame.
void fetchGLFWInput (Engine::CoreEngine &core, Engine::Application &app)
 Fetches input events directly from GLFW and updates the CoreEngine input state.
double getMouseX () const
 Gets the current X-coordinate of the mouse.
double getMouseY () const
 Gets the current Y-coordinate of the mouse.

Protected Attributes

double x = 0.0
 Current X position of the mouse.
double y = 0.0
 Current Y position of the mouse.

Detailed Description

Bridges input between GLFW and the Engine's InputManager.

Handles fetching input from GLFW and updating the CoreEngine's input system.

Member Function Documentation

◆ fetchGLFWInput()

void Runtime::InputBridge::fetchGLFWInput ( Engine::CoreEngine & core,
Engine::Application & app )

Fetches input events directly from GLFW and updates the CoreEngine input state.

Parameters
coreReference to the CoreEngine instance.
appReference 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()

void Runtime::InputBridge::update ( Engine::CoreEngine & core,
Engine::Application & app )

Updates the input system for the current frame.

Parameters
coreReference to the CoreEngine instance.
appReference to the Application instance.

Member Data Documentation

◆ x

double Runtime::InputBridge::x = 0.0
protected

Current X position of the mouse.

◆ y

double Runtime::InputBridge::y = 0.0
protected

Current Y position of the mouse.


The documentation for this class was generated from the following file: