summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-03-10 18:09:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-03-10 18:35:13 +0100
commit96ac77abb5c4f8cd22135034c8a1270cf946ceca (patch)
treed27b71df408b924c1e93e1b5c7066c1a5674fbbc /logic/pipeline.hpp
parentae1913228833d10b66636f2ff4d2b7ecc70ef142 (diff)
logic/pipeline: implement held center
Requested by: CAHEK on the Russian IL-2 Sturmovik forum
Diffstat (limited to 'logic/pipeline.hpp')
-rw-r--r--logic/pipeline.hpp8
1 files changed, 5 insertions, 3 deletions
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<unsigned> 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);
};