diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-26 09:04:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-26 09:05:13 +0100 |
commit | 3566dc23946b798b396946297cbf70f2d46fd242 (patch) | |
tree | f9f23f4a0ac5c5a71b1166dd54f048f68e952b7a /opentrack/keybinding-worker.hpp | |
parent | e8c5d0cde6676c7924c92cd43ac36588a401c8e4 (diff) |
api/shortcuts: move to separate definition
There's no need to have definitions in header for non-template classes
Diffstat (limited to 'opentrack/keybinding-worker.hpp')
-rw-r--r-- | opentrack/keybinding-worker.hpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/opentrack/keybinding-worker.hpp b/opentrack/keybinding-worker.hpp index 7661f88d..054182e7 100644 --- a/opentrack/keybinding-worker.hpp +++ b/opentrack/keybinding-worker.hpp @@ -35,18 +35,9 @@ struct Key { bool held; Timer timer; public: - Key() : keycode(0), shift(false), ctrl(false), alt(false), held(true) - { - } + Key() : keycode(0), shift(false), ctrl(false), alt(false), held(true) {} - bool should_process() - { - if (keycode == 0 && guid == "") - return false; - bool ret = timer.elapsed_ms() > 100; - timer.start(); - return ret; - } + bool should_process(); }; struct OPENTRACK_EXPORT KeybindingWorker : private QThread |