#include <InputManager.hpp>
◆ Key
◆ MouseButton
◆ CoordinateSystem
| Enumerator |
|---|
| ABSOLUTE | |
| SCENE | |
| RUNTIME | |
◆ InputManager()
| shkyera::InputManager::InputManager |
( |
| ) |
|
|
private |
◆ getInstance()
◆ getMousePosition()
| glm::vec2 shkyera::InputManager::getMousePosition |
( |
CoordinateSystem |
coordinateSystem | ) |
const |
◆ getRelativeMousePosition()
| glm::vec2 shkyera::InputManager::getRelativeMousePosition |
( |
CoordinateSystem |
coordinateSystem | ) |
const |
◆ isKeyDown()
| bool shkyera::InputManager::isKeyDown |
( |
Key |
key | ) |
const |
◆ isKeyPressed()
| bool shkyera::InputManager::isKeyPressed |
( |
Key |
key | ) |
const |
◆ isKeyReleased()
| bool shkyera::InputManager::isKeyReleased |
( |
Key |
key | ) |
const |
◆ isKeyUp()
| bool shkyera::InputManager::isKeyUp |
( |
Key |
key | ) |
const |
◆ isMouseButtonDown()
◆ isMouseButtonPressed()
| bool shkyera::InputManager::isMouseButtonPressed |
( |
MouseButton |
button | ) |
const |
◆ isMouseButtonReleased()
| bool shkyera::InputManager::isMouseButtonReleased |
( |
MouseButton |
button | ) |
const |
◆ isMouseButtonUp()
◆ isMouseInside()
◆ setCoordinateSystem()
| void shkyera::InputManager::setCoordinateSystem |
( |
CoordinateSystem |
system, |
|
|
glm::vec2 |
topLeftCorner, |
|
|
glm::vec2 |
bottomRightCorner |
|
) |
| |
◆ setWindow()
◆ update()
| void shkyera::InputManager::update |
( |
| ) |
|
◆ _coordinateSystems
| std::unordered_map<CoordinateSystem, std::pair<glm::vec2, glm::vec2> > shkyera::InputManager::_coordinateSystems |
|
private |
◆ _currentKeyStates
| std::array<bool, MAX_KEYS> shkyera::InputManager::_currentKeyStates {} |
|
private |
◆ _currentMouseStates
◆ _mousePos
| glm::vec2 shkyera::InputManager::_mousePos {0.0f, 0.0f} |
|
private |
◆ _previousKeyStates
| std::array<bool, MAX_KEYS> shkyera::InputManager::_previousKeyStates {} |
|
private |
◆ _previousMouseStates
◆ _window
◆ MAX_KEYS
◆ MAX_MOUSE_BUTTONS
The documentation for this class was generated from the following files: