Hello,
i modified the joystick settings for the Sidewinder Precision Pro joystick.
Now all buttons and axis react the same way in unix and windows except for
the view elevation binding which is on axis 5 in unix and 7 in windows.
Here the windows axis is inverse, the unix version is not.
This means if you move the hat down in unix you will look down
if you move the hat down in windows you will look up.
To fix this we would need some sort of property to inverse the axis independly
for windows and unix. If you know a way to do this feel free to fix this.
I also added some more button bindings.
With button 1 you can now switch between the views,
The brakes where moved from button 1 to button 0 because this button was
unused and users who want to switch from MS Flight Simulator to FlightGear
will like that too because the buttons are now used the same way on both
sims. With the unused button 8 (shift button), you can now retract the gears.
I also fixed the arrangement for the 4 buttons called A, B, C and D left to
the stick.
With button B you can now turn the flaps up and with button A down.
With button C you can use the left brake and with button D the right brake.
Before those changes the windows and unix bindings were different and somehow
unordered (crossed).
I tested this new Joystick settings in Windows Millenium and
Linux Slackware 10 with Flightgear 0.9.6 for windows and the newest cvs
version from today for Linux.
The xml file with the new joystick settings is attached to this e-mail.
Best Regards,
Oliver C.
?xml version=1.0?
!--
* Bindings for Microsoft SideWinder Precision Pro joystick.
*
*
* Axis 0: ailerons
* Axis 1: elevator
* Axis 2(Unix)/3(Win) (twist):rudder
* Axis 3(Unix)/2(Win):throttle
* Axis 4(Unix)/6(Win) (hat): view direction
* Axes 5(Unix)/7(Win) (hat): view elevation
*
* In game Name: Action: Button name on Joystick:Value:
* Button 0 (trigger): all brakes 0001
* Button 1: view-cylce 0002
* Button 2: elevator trim up0004
* Button 3: elevator trim down 0008
* Button 4: flaps upButton B0020
* Button 5: flap down Button A0010
* Button 6: left brake only Button C0040
* Button 7: right brake onlyButton D0080
* Button 8(Unix)/9(Win): gear up Shift Button0100(unix), 0200(Win)
$Id: sidewinder-precision-pro.xml,v 1.20 2004/11/08 00:29:00 Oliver Exp $
--
PropertyList
nameMicrosoft SideWinder Precision Pro/name
nameMicrosoft SideWinder Precision 2 Joystick/name
nameMicrosoft Microsoft SideWinder Precision Pro (USB)/name
axis n=0
descAileron/desc
binding
commandproperty-scale/command
property/controls/flight/aileron/property
squared type=booltrue/squared
/binding
/axis
axis n=1
descElevator/desc
binding
commandproperty-scale/command
property/controls/flight/elevator/property
factor type=double-1.0/factor
squared type=booltrue/squared
/binding
/axis
axis
descRudder/desc
number
unix2/unix
windows3/windows
/number
binding
commandproperty-scale/command
property/controls/flight/rudder/property
factor type=double1.0/factor
/binding
/axis
axis
descThrottle/desc
number
unix3/unix
windows2/windows
/number
binding
commandnasal/command
scriptcontrols.throttleAxis()/script
/binding
/axis
axis
descView Direction/desc
number
unix4/unix
windows6/windows
/number
low
repeatabletrue/repeatable
binding
commandproperty-adjust/command
property/sim/current-view/goal-heading-offset-deg/property
step type=double1.0/step
/binding
/low
high
repeatabletrue/repeatable
binding
commandproperty-adjust/command
property/sim/current-view/goal-heading-offset-deg/property
step type=double-1.0/step
/binding
/high
/axis
axis
descView Elevation/desc
number
unix5/unix
windows7/windows !-- axis is inverse in WinMe, please fix this --
/number
low
repeatabletrue/repeatable
binding
commandproperty-adjust/command
property/sim/current-view/goal-pitch-offset-deg/property
step type=double1.0/step
/binding
/low
high
repeatabletrue/repeatable
binding
commandproperty-adjust/command