]> git.mxchange.org Git - flightgear.git/commitdiff
replaced 'static const int' with enum, as suggested by Christian
authorcurt <curt>
Tue, 12 Jun 2001 05:16:57 +0000 (05:16 +0000)
committercurt <curt>
Tue, 12 Jun 2001 05:16:57 +0000 (05:16 +0000)
Meyer, to work around yet more MSVC bugs

src/Input/input.hxx

index b63dac855a434c975a5c133026203a9824b8ca7f..6ddf78dc8b8a56914e68da3af286d18012b5db83 100644 (file)
@@ -187,14 +187,18 @@ private:
   typedef vector<FGBinding> binding_list_t;
 
                                // Constants
-  static const int MAX_KEYS = 1024;
+  enum 
+  {
+    MAX_KEYS = 1024,
+
   #ifdef WIN32
-  static const int MAX_JOYSTICKS = 2;
+    MAX_JOYSTICKS = 2,
   #else
-  static const int MAX_JOYSTICKS = 10;
+    MAX_JOYSTICKS = 10,
   #endif
-  static const int MAX_AXES = _JS_MAX_AXES;
-  static const int MAX_BUTTONS = 32;
+    MAX_AXES = _JS_MAX_AXES,
+    MAX_BUTTONS = 32
+  };
 
 
   /**