... | ... |
@@ -107,11 +107,22 @@ |
107 | 107 |
}, |
108 | 108 |
|
109 | 109 |
5 : func { |
110 |
- controls.flapsDown(1) |
|
110 |
+ if (getprop(pressed_button[0])) |
|
111 |
+ fgcommand("property-adjust", { |
|
112 |
+ property: "/instrumentation/altimeter/setting-inhg", |
|
113 |
+ step: 0.01 |
|
114 |
+ }); |
|
115 |
+ else |
|
116 |
+ controls.flapsDown(1) |
|
111 | 117 |
}, |
112 | 118 |
|
113 | 119 |
6 : func { |
114 |
- if (getprop(pressed_button[10])) { |
|
120 |
+ if (getprop(pressed_button[0])) |
|
121 |
+ fgcommand("property-adjust", { |
|
122 |
+ property: "/instrumentation/altimeter/setting-inhg", |
|
123 |
+ step: -0.01 |
|
124 |
+ }); |
|
125 |
+ elsif (getprop(pressed_button[10])) { |
|
115 | 126 |
for (var i = 0; i < 4; i += 1) |
116 | 127 |
controls.engines[i].selected.setBoolValue(1); |
117 | 128 |
printf("all engines added to joystick controls"); |