From 48503f483f29450eca0f5a33381e0b64ef509d80 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 8 Oct 2017 13:45:07 +0200 Subject: logic: add extension support It's missing a dialog and testing. --- api/plugin-api.hpp | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'api') diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp index 3846649f..76dc34af 100644 --- a/api/plugin-api.hpp +++ b/api/plugin-api.hpp @@ -191,23 +191,19 @@ struct OTR_API_EXPORT IExtension { none = 0u, on_raw = 1 << 0, - on_after_center = 1 << 1, - on_before_filter = 1 << 2, - on_before_transform = 1 << 3, - on_before_mapping = 1 << 4, - on_finished = 1 << 5, + on_before_filter = 1 << 1, + on_before_mapping = 1 << 2, + on_finished = 1 << 3, }; enum event_ordinal : unsigned { ev_raw = 0, - ev_after_center = 1, - ev_before_filter = 2, - ev_before_transform = 3, - ev_before_mapping = 4, - ev_finished = 5, + ev_before_filter = 1, + ev_before_mapping = 2, + ev_finished = 3, - event_count = 6, + event_count = 4, }; IExtension() = default; @@ -216,9 +212,7 @@ struct OTR_API_EXPORT IExtension virtual event_mask hook_types() = 0; virtual void process_raw(Pose&) {} - virtual void process_after_center(Pose&) {} virtual void process_before_filter(Pose&) {} - virtual void process_before_transform(Pose&) {} virtual void process_before_mapping(Pose&) {} virtual void process_finished(Pose&) {} -- cgit v1.2.3