diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-08 13:45:07 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-08 13:45:07 +0200 | 
| commit | 48503f483f29450eca0f5a33381e0b64ef509d80 (patch) | |
| tree | 4244f578599044a278f48f09e4f3d33c9c148e2b /api | |
| parent | e2d5245359de0cd419d49b1f3c8e1392c5d9342a (diff) | |
logic: add extension support
It's missing a dialog and testing.
Diffstat (limited to 'api')
| -rw-r--r-- | api/plugin-api.hpp | 20 | 
1 files changed, 7 insertions, 13 deletions
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&) {}  | 
