galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::input::CameraController Class Referencefinal

Orthographic camera input wrapper. More...

#include <CameraController.hpp>

+ Collaboration diagram for galaxy::input::CameraController:

Public Member Functions

 CameraController (graphics::Camera &camera)
 Constructor.
 
 ~CameraController ()
 Destructor.
 
void on_key_press (events::KeyPress &e)
 Event processing method for input events.
 
void on_mouse_wheel (events::MouseWheel &e)
 Event processing method for scroll events.
 

Public Attributes

std::reference_wrapper< graphics::Camera > m_camera
 Camera object being manipulated.
 

Private Member Functions

 CameraController ()
 Deleted constructor.
 

Detailed Description

Orthographic camera input wrapper.

Definition at line 22 of file CameraController.hpp.

Constructor & Destructor Documentation

◆ CameraController() [1/2]

galaxy::input::CameraController::CameraController ( graphics::Camera & camera)

Constructor.

Parameters
cameraReference to camera object to manipulate.

Definition at line 18 of file CameraController.cpp.

◆ ~CameraController()

galaxy::input::CameraController::~CameraController ( )

Destructor.

Definition at line 23 of file CameraController.cpp.

◆ CameraController() [2/2]

galaxy::input::CameraController::CameraController ( )
private

Deleted constructor.

Member Function Documentation

◆ on_key_press()

void galaxy::input::CameraController::on_key_press ( events::KeyPress & e)

Event processing method for input events.

Parameters
eTakes in a key press event.

Definition at line 27 of file CameraController.cpp.

◆ on_mouse_wheel()

void galaxy::input::CameraController::on_mouse_wheel ( events::MouseWheel & e)

Event processing method for scroll events.

Parameters
eTakes in a mouse wheel scroll event.

Definition at line 87 of file CameraController.cpp.

Member Data Documentation

◆ m_camera

std::reference_wrapper<graphics::Camera> galaxy::input::CameraController::m_camera

Camera object being manipulated.

Definition at line 61 of file CameraController.hpp.


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