Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::InputManager Class Referenceexport

Public Member Functions

 InputManager (Window const *const window)
void init (json const &input_config)
void keyPress (int key, int scan_code, int action, int mods)
void mouseButton (int button, int action, int mods)
void saveLastMousePos (double x_pos, double y_pos)
void setCamera (Camera *const camera)
void updateMousePos (double x_pos, double y_pos)
void processGamepad (PlayerManager *player_manager, double const delta_time)

Static Public Attributes

static bool _can_move_camera = false
static bool _first_move_mouse = true

Constructor & Destructor Documentation

◆ InputManager()

Vyroda::InputManager::InputManager ( Window const *const window)
explicit

Member Function Documentation

◆ init()

void Vyroda::InputManager::init ( json const & input_config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ keyPress()

void Vyroda::InputManager::keyPress ( int key,
int scan_code,
int action,
int mods )
Here is the call graph for this function:

◆ mouseButton()

void Vyroda::InputManager::mouseButton ( int button,
int action,
int mods )

◆ processGamepad()

void Vyroda::InputManager::processGamepad ( PlayerManager * player_manager,
double const delta_time )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveLastMousePos()

void Vyroda::InputManager::saveLastMousePos ( double x_pos,
double y_pos )

◆ setCamera()

void Vyroda::InputManager::setCamera ( Camera *const camera)
inline
Here is the caller graph for this function:

◆ updateMousePos()

void Vyroda::InputManager::updateMousePos ( double x_pos,
double y_pos )

Member Data Documentation

◆ _can_move_camera

bool Vyroda::InputManager::_can_move_camera = false
static

◆ _first_move_mouse

bool Vyroda::InputManager::_first_move_mouse = true
static

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