From a166f9a15df90189140189b112d6abd119abd177 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 9 Apr 2002 10:45:47 +0000 Subject: [PATCH] Add explicit types for all non-string properties. This will help a lot, since otherwise a property that is never set or tied by FlightGear itself will always be kept as a string and converted on each access. That's why fgGetBool and friends could take up a lot of processor time sometimes. --- joysticks.xml | 8 +-- keyboard.xml | 36 +++-------- mice.xml | 28 ++++---- preferences.xml | 194 ++++++++++++++++++++++++++++---------------------------- 4 files changed, 123 insertions(+), 143 deletions(-) diff --git a/joysticks.xml b/joysticks.xml index 21d5444..610f1a9 100644 --- a/joysticks.xml +++ b/joysticks.xml @@ -31,7 +31,7 @@ axes for the hat switch, and several more buttons. property-scale /controls/aileron - true + true @@ -41,7 +41,7 @@ axes for the hat switch, and several more buttons. property-scale /controls/elevator -1.0 - true + true @@ -99,7 +99,7 @@ axes for the hat switch, and several more buttons. @@ -42,14 +42,14 @@ The current mode for each mouse is held in the crosshair - true - false + true + false @@ -70,7 +70,7 @@ The current mode for each mouse is held in the property-adjust /controls/aileron - 4.0 + 4.0 -1.0 1.0 false @@ -88,7 +88,7 @@ The current mode for each mouse is held in the property-adjust /controls/rudder - 4.0 + 4.0 -1.0 1.0 false @@ -113,7 +113,7 @@ The current mode for each mouse is held in the property-adjust /controls/elevator - -4.0 + -4.0 -1.0 1.0 false @@ -131,7 +131,7 @@ The current mode for each mouse is held in the property-adjust /controls/throttle - -4.0 + -4.0 0.0 1.0 false @@ -143,8 +143,8 @@ The current mode for each mouse is held in the left-right - true - false + true + false @@ -161,7 +161,7 @@ The current mode for each mouse is held in the property-assign /devices/status/mice/mouse[0]/mode - 0 + 0 diff --git a/preferences.xml b/preferences.xml index 29b200f..109bd63 100644 --- a/preferences.xml +++ b/preferences.xml @@ -13,75 +13,75 @@ Started September 2000 by David Megginson, david@megginson.com c172 - false + false - 800 - 600 - true - false - false + 800 + 600 + true + false + false KSFO - false + false feet - true + true netscape - 120 - true - 1.0 - 55.0 + 120 + true + 1.0 + 55.0 Aircraft/c172/Panels/c172-vfr-panel.xml - false - false + false + false Huds/Default/default.xml - false + false - 1 + true - + - true - false - false - false + true + false + false + false - 0 - 3 + 0 + 3 - -122.362175 - 37.616559 - 54 - 0 - 0 - 0 + -122.362175 + 37.616559 + 54 + 0 + 0 + 0 Cockpit View lookfrom - false + false /position/latitude-deg /position/longitude-deg @@ -111,9 +111,9 @@ Started September 2000 by David Megginson, david@megginson.com /orientation/pitch-deg /orientation/roll-deg - 0 - 0 - -25 + 0 + 0 + -25 @@ -136,9 +136,9 @@ Started September 2000 by David Megginson, david@megginson.com /orientation/pitch-deg /orientation/heading-deg - 0 - 0 - 0 + 0 + 0 + 0 @@ -147,9 +147,9 @@ Started September 2000 by David Megginson, david@megginson.com chase view - 180.0 - 0 - 25 + 180.0 + 0 + 25 @@ -160,32 +160,32 @@ Started September 2000 by David Megginson, david@megginson.com - -9999 + -9999 - 0.0 - 0.0 - 0.0 + 0.0 + 0.0 + 0.0 - 270 - 0.0 - 0.424 + 270 + 0.0 + 0.424 - 16000 + 16000 @@ -193,46 +193,46 @@ Started September 2000 by David Megginson, david@megginson.com - 0.0 - 0.0 + 0.0 + 0.0 - 0.0 - 0.0 + 0.0 + 0.0 - 0.0 - 0.0 + 0.0 + 0.0 - 0.0 + 0.0 - false - 0 - 0.0 - 1.0 - 1.0 + false + 0 + 0.0 + 1.0 + 1.0 - false - 0 - 0.0 - 1.0 - 1.0 + false + 0 + 0.0 + 1.0 + 1.0 - false - 0 - 0.0 - 1.0 - 1.0 + false + 0 + 0.0 + 1.0 + 1.0 - false - 0 - 0.0 - 1.0 - 1.0 + false + 0 + 0.0 + 1.0 + 1.0 - 0.0 - 0.0 - 0.0 + 0.0 + 0.0 + 0.0 - 1.0 + 1.0 @@ -258,49 +258,49 @@ Started September 2000 by David Megginson, david@megginson.com - 0 + 0 - 118.00 - 115.8 + 118.00 + 115.8 - 111.80 - 115.70 + 111.80 + 115.70 - 266.0 - 300.0 + 266.0 + 300.0 - 90 + 90 @@ -310,7 +310,7 @@ Started September 2000 by David Megginson, david@megginson.com - 1013.25 + 1013.25 -- 2.1.4