summaryrefslogtreecommitdiffhomepage
path: root/logic/work.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/work.cpp')
-rw-r--r--logic/work.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/logic/work.cpp b/logic/work.cpp
index cdc27b05..11ec9912 100644
--- a/logic/work.cpp
+++ b/logic/work.cpp
@@ -65,17 +65,17 @@ Work::Work(Mappings& m, event_handler& ev, QFrame* frame, std::shared_ptr<dylib
tracker(std::make_shared<pipeline>(m, libs, ev, *logger)),
sc(std::make_shared<Shortcuts>()),
keys {
- key_tuple(s.key_center1, [&](bool) { tracker->center(); }, true),
- key_tuple(s.key_center2, [&](bool) { tracker->center(); }, true),
+ key_tuple(s.key_center1, [&](bool) { tracker->set_center(); }, true),
+ key_tuple(s.key_center2, [&](bool) { tracker->set_center(); }, true),
key_tuple(s.key_toggle1, [&](bool) { tracker->toggle_enabled(); }, true),
key_tuple(s.key_toggle2, [&](bool) { tracker->toggle_enabled(); }, true),
- key_tuple(s.key_zero1, [&](bool) { tracker->zero(); }, true),
- key_tuple(s.key_zero2, [&](bool) { tracker->zero(); }, true),
+ key_tuple(s.key_zero1, [&](bool) { tracker->toggle_zero(); }, true),
+ key_tuple(s.key_zero2, [&](bool) { tracker->toggle_zero(); }, true),
- key_tuple(s.key_toggle_press1, [&](bool x) { tracker->set_toggle(!x); }, false),
- key_tuple(s.key_toggle_press2, [&](bool x) { tracker->set_toggle(!x); }, false),
+ key_tuple(s.key_toggle_press1, [&](bool x) { tracker->set_enabled(!x); }, false),
+ key_tuple(s.key_toggle_press2, [&](bool x) { tracker->set_enabled(!x); }, false),
key_tuple(s.key_zero_press1, [&](bool x) { tracker->set_zero(x); }, false),
key_tuple(s.key_zero_press2, [&](bool x) { tracker->set_zero(x); }, false),