Class for event manager.
More...
#include <EventManager.hpp>
Class for event manager.
Definition at line 42 of file EventManager.hpp.
◆ EventManager() [1/3]
ven::EventManager::EventManager |
( |
| ) |
|
|
default |
◆ ~EventManager()
ven::EventManager::~EventManager |
( |
| ) |
|
|
default |
◆ EventManager() [2/3]
◆ EventManager() [3/3]
◆ handleEvents()
void ven::EventManager::handleEvents |
( |
GLFWwindow * | window, |
|
|
ENGINE_STATE * | engineState, |
|
|
Camera & | camera, |
|
|
Gui & | gui, |
|
|
float | dt ) const |
◆ isKeyJustPressed()
bool ven::EventManager::isKeyJustPressed |
( |
GLFWwindow * | window, |
|
|
long unsigned int | key, |
|
|
std::array< bool, GLFW_KEY_LAST > & | keyStates ) |
|
staticprivate |
◆ moveCamera()
void ven::EventManager::moveCamera |
( |
GLFWwindow * | window, |
|
|
Camera & | camera, |
|
|
float | dt ) |
|
staticprivate |
Definition at line 26 of file eventManager.cpp.
References ven::DEFAULT_KEY_MAPPINGS, ven::EPSILON, ven::Camera::getLookSpeed(), ven::Camera::getMoveSpeed(), ven::KeyMappings::lookDown, ven::KeyMappings::lookLeft, ven::KeyMappings::lookRight, ven::KeyMappings::lookUp, ven::KeyMappings::moveBackward, ven::KeyMappings::moveDown, ven::KeyMappings::moveForward, ven::KeyMappings::moveLeft, ven::KeyMappings::moveRight, ven::KeyMappings::moveUp, ven::Transform3D::rotation, ven::Camera::transform, and ven::Transform3D::translation.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ processKeyActions()
template<typename Iterator >
void ven::EventManager::processKeyActions |
( |
GLFWwindow * | window, |
|
|
Iterator | begin, |
|
|
Iterator | end ) |
|
staticprivate |
◆ updateEngineState()
◆ m_keyState
std::array<bool, GLFW_KEY_LAST> ven::EventManager::m_keyState {} |
|
mutableprivate |
The documentation for this class was generated from the following files: