summaryrefslogtreecommitdiffhomepage
path: root/logic/work.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/work.cpp')
-rw-r--r--logic/work.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/logic/work.cpp b/logic/work.cpp
index d2a16139..ebac4c39 100644
--- a/logic/work.cpp
+++ b/logic/work.cpp
@@ -67,12 +67,20 @@ Work::Work(Mappings& m, SelectedLibraries& libs, WId handle) :
sc(std::make_shared<Shortcuts>()),
handle(handle),
keys {
- key_tuple(s.key_center, [&](bool) -> void { tracker->center(); }, true),
- key_tuple(s.key_toggle, [&](bool) -> void { tracker->toggle_enabled(); }, true),
- key_tuple(s.key_zero, [&](bool) -> void { tracker->zero(); }, true),
- key_tuple(s.key_toggle_press, [&](bool x) -> void { tracker->set_toggle(!x); }, false),
- key_tuple(s.key_zero_press, [&](bool x) -> void { tracker->set_zero(x); }, false),
- key_tuple(s.key_disable_tcomp_press, [&](bool x) { tracker->set_tcomp_disabled(x); }, false),
+ key_tuple(s.key_center1, [&](bool) -> void { tracker->center(); }, true),
+ key_tuple(s.key_center2, [&](bool) -> void { tracker->center(); }, true),
+
+ key_tuple(s.key_toggle1, [&](bool) -> void { tracker->toggle_enabled(); }, true),
+ key_tuple(s.key_toggle2, [&](bool) -> void { tracker->toggle_enabled(); }, true),
+
+ key_tuple(s.key_zero1, [&](bool) -> void { tracker->zero(); }, true),
+ key_tuple(s.key_zero2, [&](bool) -> void { tracker->zero(); }, true),
+
+ key_tuple(s.key_toggle_press1, [&](bool x) -> void { tracker->set_toggle(!x); }, false),
+ key_tuple(s.key_toggle_press2, [&](bool x) -> void { tracker->set_toggle(!x); }, false),
+
+ key_tuple(s.key_zero_press1, [&](bool x) -> void { tracker->set_zero(x); }, false),
+ key_tuple(s.key_zero_press2, [&](bool x) -> void { tracker->set_zero(x); }, false),
}
{
reload_shortcuts();