]> git.mxchange.org Git - flightgear.git/blobdiff - src/Controls/controls.hxx
Make FlightGear work with 16bpp:
[flightgear.git] / src / Controls / controls.hxx
index e55c4c38bffb431c82988e2bb7586a6a7b839e56..82f9b92336cbfbed7c80fa3097e8012c2e27348e 100644 (file)
@@ -140,7 +140,7 @@ private:
     bool augmentation[MAX_ENGINES];
     bool reverser[MAX_ENGINES];
     bool water_injection[MAX_ENGINES];
-    int condition[MAX_ENGINES];           // turboprop speed select
+    double condition[MAX_ENGINES];           // turboprop speed select
 
     // controls/fuel/
     bool dump_valve;
@@ -156,6 +156,8 @@ private:
     // controls/gear/
     double brake_left;
     double brake_right;
+    double copilot_brake_left;
+    double copilot_brake_right;
     double brake_parking;
     double steering;
     bool gear_down;
@@ -316,7 +318,7 @@ public:
     inline bool get_water_injection(int engine) const { 
         return water_injection[engine]; 
     }
-    inline int get_condition(int engine) const { return condition[engine]; }
+    inline double get_condition(int engine) const { return condition[engine]; }
 
     // controls/fuel/
     inline bool get_dump_valve() const { return dump_valve; }
@@ -336,6 +338,8 @@ public:
     // controls/gear/
     inline double get_brake_left() const { return brake_left; }
     inline double get_brake_right() const { return brake_right; }
+    inline double get_copilot_brake_left() const { return copilot_brake_left; }
+    inline double get_copilot_brake_right() const { return copilot_brake_right; }
     inline double get_brake_parking() const { return brake_parking; }
     inline double get_steering() const { return steering; }
     inline bool get_gear_down() const { return gear_down; }
@@ -501,7 +505,7 @@ public:
     void set_augmentation( int engine, bool val );
     void set_reverser( int engine, bool val );
     void set_water_injection( int engine, bool val );
-    void set_condition( int engine, int val );    
+    void set_condition( int engine, double val );    
 
     // controls/fuel
     void set_dump_valve( bool val );
@@ -519,6 +523,8 @@ public:
     void move_brake_left( double amt );
     void set_brake_right( double pos );
     void move_brake_right( double amt );
+    void set_copilot_brake_left( double pos );
+    void set_copilot_brake_right( double pos );
     void set_brake_parking( double pos );
     void set_steering( double pos );
     void move_steering( double amt );