#include <InputManager.h>
|
| void | bindBoolAction (std::string name, BoolProvider provider) |
| void | bindFloatAction (std::string name, FloatProvider provider) |
| void | bindVec2Action (std::string name, Vec2Provider provider) |
| CallbackHandle | onBoolAction (const std::string &name, DispatchRule rule, BoolCallback callback) |
| CallbackHandle | onBoolPressed (const std::string &name, std::function< void()> callback) |
| CallbackHandle | onBoolReleased (const std::string &name, std::function< void()> callback) |
| CallbackHandle | onFloatAction (const std::string &name, DispatchRule rule, FloatCallback callback) |
| CallbackHandle | onVec2Action (const std::string &name, DispatchRule rule, Vec2Callback callback) |
| void | removeCallback (CallbackHandle handle) |
| void | beginFrame () |
| void | dispatchCallbacks () |
| bool | getBoolAction (const std::string &name) const |
| float | getFloatAction (const std::string &name) const |
| glm::vec2 | getVec2Action (const std::string &name) const |
Definition at line 23 of file InputManager.h.
◆ BoolCallback
◆ BoolProvider
◆ FloatCallback
◆ FloatProvider
◆ Vec2Callback
◆ Vec2Provider
◆ DispatchRule
| Enumerator |
|---|
| EveryFrame | |
| Changed | |
| Pressed | |
| Released | |
Definition at line 26 of file InputManager.h.
◆ beginFrame()
| void Input::InputManager::beginFrame |
( |
| ) |
|
◆ bindBoolAction()
| void Input::InputManager::bindBoolAction |
( |
std::string | name, |
|
|
BoolProvider | provider ) |
◆ bindFloatAction()
| void Input::InputManager::bindFloatAction |
( |
std::string | name, |
|
|
FloatProvider | provider ) |
◆ bindVec2Action()
| void Input::InputManager::bindVec2Action |
( |
std::string | name, |
|
|
Vec2Provider | provider ) |
◆ dispatchCallbacks()
| void Input::InputManager::dispatchCallbacks |
( |
| ) |
|
◆ getBoolAction()
| bool Input::InputManager::getBoolAction |
( |
const std::string & | name | ) |
const |
|
nodiscard |
◆ getFloatAction()
| float Input::InputManager::getFloatAction |
( |
const std::string & | name | ) |
const |
|
nodiscard |
◆ getVec2Action()
| glm::vec2 Input::InputManager::getVec2Action |
( |
const std::string & | name | ) |
const |
|
nodiscard |
◆ makeHandle()
◆ onBoolAction()
◆ onBoolPressed()
| CallbackHandle Input::InputManager::onBoolPressed |
( |
const std::string & | name, |
|
|
std::function< void()> | callback ) |
◆ onBoolReleased()
| CallbackHandle Input::InputManager::onBoolReleased |
( |
const std::string & | name, |
|
|
std::function< void()> | callback ) |
◆ onFloatAction()
◆ onVec2Action()
◆ removeCallback()
◆ boolActions_
| std::unordered_map<std::string, BoolAction> Input::InputManager::boolActions_ |
|
private |
◆ callbacksDispatched_
| bool Input::InputManager::callbacksDispatched_ = true |
|
private |
◆ floatActions_
| std::unordered_map<std::string, FloatAction> Input::InputManager::floatActions_ |
|
private |
◆ nextCallbackId_
| uint64_t Input::InputManager::nextCallbackId_ = 1 |
|
private |
◆ vec2Actions_
| std::unordered_map<std::string, Vec2Action> Input::InputManager::vec2Actions_ |
|
private |
The documentation for this class was generated from the following file:
- /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Input/InputManager.h