Overte C++ Documentation
OverlayConductor.h
1 //
2 // OverlayConductor.h
3 // interface/src/ui
4 //
5 // Copyright 2015 High Fidelity, Inc.
6 //
7 // Distributed under the Apache License, Version 2.0.
8 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
9 //
10 
11 #ifndef hifi_OverlayConductor_h
12 #define hifi_OverlayConductor_h
13 
14 #include <cstdint>
15 
16 class OverlayConductor {
17 public:
18  OverlayConductor();
19  ~OverlayConductor();
20 
21  void update(float dt);
22  void centerUI();
23 
24 private:
25  bool headNotCenteredInOverlay() const;
26 
27 #if !defined(DISABLE_QML)
28  bool _hmdMode { false };
29 #endif
30 
31  // This stores value of myAvatar->hasDriveInput() from previous update, so that recentering can be triggered by a rising edge of that function's output
32  bool _lastHasDriveInput { false };
33 };
34 
35 #endif