I am attaching an edit of this file that should work with either Windows
or Linux. As of a few days ago, the CVS file did not work at all.
Would a Windows person with this joystick try it and then it could be
included in the release.
Dave P.
!--
Joystick binding definitions for Saitek Cyborg Evo Joystick.
aitek Cyborg USB Stick
This file borrows heavily from Cyborg-Gold-3d-USB.xml
The Saitek Cyborg Evo is designed to be easily switchable between a
left-handed or right handed person. With that in mind {^, F1, F2} buttons
on the left, and {^, F3, F4 } buttons on the right have repeated
functionality as the 'modifier' buttons.
Axis # (direction) mapped to
~~
axis 0: (left-right) aileron
axis 1: (forward-backward) elevator
axis 2: (slider) throttle
axis 3: (twist)rudder
Left Side Modifiers
button 10: ^Modifier 1
button 6: F1 Modifier 2
button 7: F2 Modifier 3
Right Side Modifiers
button 11: ^Modifier 1
button 8: F3 Modifier 2
button 9: F4 Modifier 3
Button # (location) No Mod Mod 1Mod 2 Mod 3
button 0: (trigger) Brakes Parking Brake Speed Brake Thrust Reverse
button 1: (middle) Reset View Reset All Trim Cockpit View Tail Wheel Lock
button 2: (left) Flaps Up Gear UpZoom In #
button 3: (right) Flaps Down Gear Down Zoom Out #
button 4: (left of hat) Previous View Trim Rudder ##
button 5: (right of hat) Next View Trim Rudder ##
axis 4: (hat left-right) look l/r Trim Aileron Adj Mixture #
axis 5: (hat up-down) look u/d Trim Elevator Adj Propeller #
--
PropertyList
nameSaitek Cyborg USB Stick/name
!-- Axis Bindings --
axis n=0
descAileron/desc
binding
commandproperty-scale/command
property/controls/flight/aileron/property
power type=double2/power
/binding
/axis
axis n=1
descElevator/desc
binding
commandproperty-scale/command
property/controls/flight/elevator/property
factor type=double-1.0/factor
power type=double2/power
/binding
/axis
axis n=2
descThrottle/desc
binding
commandnasal/command
scriptcontrols.throttleAxis()/script
/binding
/axis
axis n=3
descRudder/desc
binding
commandproperty-scale/command
property/controls/flight/rudder/property
power type=double2/power
/binding
/axis
!-- Hat Switch --
axis
descView Direction; Aileron Trim;/desc
number
unix4/unix
windows6/windows
/number
low
repeatabletrue/repeatable
binding
commandnasal/command
script
mod = getprop(/input/joysticks/js[0]/saitek-cyborg-evo-modifier);
if (mod == nil or mod == 0) {
v = getprop(/sim/current-view/view-number);
if (v == 0 or v == 4) {
view.panViewDir(2);
} else {
view.panViewDir(2);
}
} elsif (mod == 1) {
controls.aileronTrim(-0.75);
} elsif (mod == 2) {
controls.adjMixture(-2);
} elsif (mod == 3) {
#
}
/script
/binding
/low
high
repeatabletrue/repeatable
binding
commandnasal/command
script
mod = getprop(/input/joysticks/js[0]/saitek-cyborg-evo-modifier);
if (mod == nil or mod == 0) {
v = getprop(/sim/current-view/view-number);
if (v == 0 or v == 4) {
view.panViewDir(-2);
} else {
view.panViewDir(-2);
}
} elsif (mod == 1) {
controls.aileronTrim(0.75);
} elsif (mod == 2) {
controls.adjMixture(2);
} elsif (mod == 3) {
#
}
/script
/binding
/high
/axis
axis
descView Elevation; Elevator Trim;/desc
number
unix5/unix
windows7/windows
/number
low
repeatabletrue/repeatable
binding
commandnasal/command
script
mod = getprop(/input/joysticks/js[0]/saitek-cyborg-evo-modifier);
if (mod == nil or mod == 0) {
view.panViewPitch(2);
} elsif (mod == 1) {
controls.elevatorTrim(0.75);
} elsif (mod == 2) {
controls.adjPropeller(1);
} elsif (mod == 3) {
#
}
/script
/binding
/low
high
repeatabletrue/repeatable
binding
commandnasal/command
script
mod = getprop(/input/joysticks/js[0]/saitek-cyborg-evo-modifier);
if (mod == nil or mod == 0) {
view.panViewPitch(-2);
} elsif (mod == 1) {
controls.elevatorTrim(-0.75);
} elsif (mod == 2) {
controls.adjPropeller(-1);
} elsif (mod == 3) {
#
}
/script
/binding
/high
/axis
!-- Button Bindings --
!-- Trigger Button - Brakes, Parking Brake, Thrust Reverser --
button n=0
descBrakes/desc
repeatable type=booltrue/repeatable
binding
commandnasal/command
script
mod = getprop(/input/joysticks/js[0]/saitek-cyborg-evo-modifier);
if (mod == nil or mod == 0) {
interpolate(/controls/gear/brake-left, 1, 0.075);
interpolate(/controls/gear/brake-right, 1, 0.075);
} elsif