On Thursday 20 May 2004 17:04, Aidan Holmes wrote: > Thanks for Your Help Al, > I have the File in place and I think I've made all the right mods to > joysticks.xml etc. > > Could you tell me what the button assignments work as on your stick > though. The button numbers in the binding file don't seem to bear any > resemblance to the output from js_demo, or the button labels on the > stick itself. >
Okay this is what the press of each button on my Sidewinder does. 1 All Brakes 2 Centre View 3 Left Brakes 4 Right Brakes 5 Flaps Up 6 Trim Up 7 Flaps Down 8 Trim Down Mapping of Joystick button to button in XML file XML Joystick 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 Joystick button position 1 Trigger 2 Large button below hat 3 Smaller button to, below and left to Button 2 4 Smaller button to, below and right to Button 2 5 Right Pad (as looking from front) 6 Top Pad 7 Left Pad 8 Bottom Button map from js_demo XX01 Button 1 on joystick XX02 Button 2 XX04 Button 3 XX08 Button 4 XX10 Button 5 XX20 Button 6 XX40 Button 7 XX80 Button 8 > I have the following fuctions with your .xml file (button numbers as > they are moulded in the plastic on the stick) > 1: nothing > 2: centre view > 3: nothing > 4: nothing > 5: flaps down > 6: trim nose down > 7: flaps up > 8: trim nose up > 5/7 are flipped and 6/8 are flipped > is this the way they work with your stick? No it works as I have detailed above. > from studying the file it > seems that the remaining buttons (1,3 and 4) are supposed to be the > brakes - is this correct? (none of the buttons work as brakes for me) > > It's interesting to note that the flipped character you have in your > joystick name is diferent to mine, which is "Microsoft �ideWinder Force > Feedback 2 Joystick" it's also interesting to note that it doesn't make > a difference what I call the joystick in the binding file or > joysticks.xml, it still looks at the new file I've copied in (I know > because whenever I make a change to the number of one of the buttons > that works, it stops working) > > attached is a copy of my joysticks.xml file, my slightly modified copy > of the file you sent me and below is a table of the button test results > from js_demo. > Is that a valid modification in your joysticks.xml file? Shouldn't it just be <js-named include="Input/Joysticks/Microsoft/sidewinder-force-feedback-2.xml"/> no need to put in the reported name from js_demo AFAIK > > Button number / js_test result > 1/0401 > 2/0402 > 3/0404 > 4/0408 > 5/0410 > 6/0420 > 7/0440 > 8/0480 > > Well that's a match there then - the joysticks should behave the same then. Best of luck, Al _______________________________________________ Flightgear-users mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-users
