From ca9feebd38fb926beb2db07df3e99fb66fdab178 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 1 Mar 2006 18:42:37 +0000 Subject: [PATCH] - use brake wrappers - use Vasilii method to reset FOV (F4+F1+F2) --- Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml b/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml index fda8e1fd7..0a2ace0e4 100644 --- a/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml +++ b/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml @@ -105,9 +105,15 @@ ________________________________________________________________________________ data = props.globals.getNode(this).getNode("data"); mode = data.getNode("mode"); modifier = data.getNode("modifier"); + f1 = f2 = 0; get_mode = func { modifier.getValue() + mode.getValue() * 4 } + resetFOV = func { + setprop("/sim/current-view/field-of-view", + getprop("/sim/current-view/config/default-field-of-view-deg")); + } + harrier = func { if (getprop("/sim/aero") == "harrier") { thv = getprop("/controls/engines/engine[0]/mixture"); @@ -173,11 +179,9 @@ ________________________________________________________________________________