3#include "Primitives.hpp"
7#include <unordered_map>
24 void InsertBindingAction(
25 const std::pair<std::string, std::function<
void()>>& bindingAction);
29 void LoadBindings(
const std::string& ownerName);
30 virtual void HandleGlobalBindings(
Event event);
31 virtual void HandleLocalBindings(
Event event);
34 std::unordered_map<EEventKey, std::string> mGlobalBindings;
35 std::unordered_map<EEventKey, std::string> mLocalBindings;
36 std::unordered_map<std::string, std::function<void()>> mBindingActions;
38 std::string mOwnerName;
void HandleUserEvent(Event event, bool ownerIsActive)
Process global bindings. If ownerIsActive is true process local bindings as well.
Definition HotKeyComponent.cpp:26
HotKeyComponent(const std::string &ownerName)
HotKeyComponent::HotKeyComponent.
Definition HotKeyComponent.cpp:9
Definition Primitives.hpp:88