From 96ac77abb5c4f8cd22135034c8a1270cf946ceca Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 10 Mar 2018 18:09:07 +0100 Subject: logic/pipeline: implement held center Requested by: CAHEK on the Russian IL-2 Sturmovik forum --- logic/pipeline.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'logic/pipeline.hpp') diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp index 7132a36b..f71a8963 100644 --- a/logic/pipeline.hpp +++ b/logic/pipeline.hpp @@ -73,9 +73,10 @@ struct OTR_LOGIC_EXPORT bits { enum flags : unsigned { f_center = 1 << 0, - f_enabled_h = 1 << 1, - f_enabled_p = 1 << 2, - f_zero = 1 << 3, + f_held_center = 1 << 1, + f_enabled_h = 1 << 2, + f_enabled_p = 1 << 3, + f_zero = 1 << 4, }; std::atomic b; @@ -149,6 +150,7 @@ public: void toggle_enabled(); void set_center(); + void set_held_center(bool value); void set_enabled(bool value); void set_zero(bool value); }; -- cgit v1.2.3