From 2dd8064c20d88c26a11240c6a871f670b5109d71 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 29 Jun 2016 13:02:41 +0200 Subject: logic, gui: reload keybinding description on profile change --- opentrack-logic/shortcuts.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'opentrack-logic/shortcuts.h') diff --git a/opentrack-logic/shortcuts.h b/opentrack-logic/shortcuts.h index 87e24d4f..d6a87672 100644 --- a/opentrack-logic/shortcuts.h +++ b/opentrack-logic/shortcuts.h @@ -45,6 +45,8 @@ public: using fun = std::function; using tt = std::tuple; + using t_key = std::tuple; + using t_keys = std::vector; std::vector keys; #ifdef _WIN32 KeybindingWorker::Token key_token; @@ -56,10 +58,10 @@ public: #endif {} - void reload(const std::vector> &keys_); + void reload(const t_keys& keys_); private: void free_binding(K& key); - void bind_keyboard_shortcut(K &key, const key_opts& k, bool held); + void bind_shortcut(K &key, const key_opts& k, bool held); #ifdef _WIN32 void receiver(const Key& k); #endif -- cgit v1.2.3