Re: [Flightgear-devel] X-52 Pro joystick configuration

2007-12-07 Thread Tatsuhiro Nishioka
Hi AnMaster,

It seems better than mine to me. I'll test it with my X52 (not X52 pro  
but it looks useful with X52 too).

Thanks for your effort!!

Tat

On Dec 4, 2007, at 4:45 PM, AnMaster wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512

 I have made a joystick config for Saitek X52 Pro: the axis numbers  
 and button
 numbers differ from the normal X52.

 This is an early version, I expect it to change as I find what is  
 useful and
 what isn't. If someone want to put it in CVS, the file is attached.

 Regards,

 AnMaster
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)

 iD8DBQFHVQWdWmK6ng/aMNkRCsP8AKC1MOvJNtEvUfphX8ABtF47eVsY9wCgoljQ
 tynBvGtatKqQ/8cJaFOhmtE=
 =SDTP
 -END PGP SIGNATURE-
 ?xml version=1.0?
 !--
  Based on X52.xml and Aviator.xml
  Modified by Arvid Norlander; 2007-12-03

  This file is released under the GPL license.
 --

 !--
 Common Axis/Buttons
 + Roll/Pitch/Throttle/Rudder:  As There are
 + Top stick hat:   Airelon / Elevator trim
 + Bottom stick hat:View directions (Increase/Decrease  
 visibility  Zoom In/Out when shifted)
 + Throttle foreside hat:   Up/down: View cycles (Shift: flaps up/ 
 down). Left/right: Rudder trim
 + Throttle slider: Boost Control (if available)
 + Tirgger: Apply all brakes
 + Fire button: Toggle parking brake
 + Stick button A:Gear up (Shift: gear down)
 + Stick button B:HUD master switch
 + Stick button C:Reset view (hackish) (shift: Toggle  
 speedbrake)
 + Pinkie button:   Shift switch
 + Throttle button D: Right brake
 + Throttle button E: Left brake
 + Throttle button i: PTT (Push to talk, for fgcom)
 + Throttle mouse button:   Start Selected Engine(s)
 + T1/T2:   Hook up/down (Increase/Decrease  
 spoilers when shifted)
 + T3/T4:   Increase/Decrease slats
 + T5/T6:   Increase/Decrease Speedbrake  
 (Increase/Decrease magneto when shifted)

 Mode 1: Propeller Aircraft
 + Top rotary dial: Mixture
 + Bottom rotary dial:  Prop Advance
 + Throttle mouse button:   Start Selected Engine(s)

 Mode 2: Jet Aircraft
 + Top rotary dial: Carb Heat

 Mode 3: Not implemented yet

 Linux Axis Numbers (no idea about window/mac ones, and they are not  
 same as plain X52 axis numbers on linux at least):
  0 Roll (positive == right)
  1 Pitch (positive == down/back/nose-up)
  2 Throttle (positive == back/down/idle)
  3 Bottom rotary dial on the throttle (positive == CW)
  4 Top rotary dial on the throttle (positive == CCW)
  5 Rocker switch (rudder control) on the throttle (positive ==  
 right)
  6 Slider on the throttle (positive == forward)
  7 Lower right hat horizontal axis (positive == right)
  8 Lower right hat vertical axis (positive == down (Mac positive  
 is UP))
  9 Mouse Y (positive = up)
  10Mouse X (positive = right)

 Button Numbers (Probably identical b/w Linux/Windows/Mac):
 0  Trigger (half pressed)
 1  Stick top Fire switch
 2  Stick top A switch
 3  Stick top B switch
 4  Stick top C switch
 5  Stick pinkie switch
 6  Throttle D switch
 7  Throttle E switch
 8  T1
 9  T2
 10  T3
 11  T4
 12  T5
 13  T6
 15  Throttle mouse switch
 16  Throttle forefinger wheel scroll down
 17  Throttle forefinger wheel scroll up
 18  Throttle forefinger wheel click
 19  Upper left hat in up position
 20  Upper left hat in right position
 21  Upper left hat in down position
 22  Upper left hat in left position
 23  Throttle forefinger hat in up/back position
 24  Throttle forefinger hat in right position
 25  Throttle forefinger hat in down/forward position
 26  Throttle forefinger hat in left position
 27  Mode 1
 28  Mode 2
 29  Mode 3
 30  Throttle i switch
 31  Function wheel (below MFD) click (don't use, it is for timer)
 32  START/STOP (don't use, for features in joystick itself)
 33  RESET (don't use, for features in joystick itself)
 34  Function wheel (below MFD) up
 35  Function wheel (below MFD) down
 36  MFD-select wheel below MFD up
 37  MFD-select wheel below MFD down
 38  MFD-select wheel below MFD click
 $Id: $
 --
 PropertyList

   nameSaitek X52 Pro Flight Control System/name
   nameSaitek Saitek X52 Pro Flight Control System/name
   !-- No idea if there are more names for it, mine matches the last  
 entry here. --

   !-- Custom section for storing some properties, based on  
 Aviator.xml --
   data
   modifier type=boolfalse/modifier
   mode type=int0/mode
   /data

   nasal
   script
   ![CDATA[
   var self = cmdarg().getParent();
   var data = self.getNode(data);
   var modifier  = data.getNode(modifier);
   var mode  = 

Re: [Flightgear-devel] X-52 Pro joystick configuration

2007-12-07 Thread AnMaster
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Tatsuhiro Nishioka wrote:
 Hi AnMaster,
 
 It seems better than mine to me. I'll test it with my X52 (not X52 pro  
 but it looks useful with X52 too).
Please note that the axis and button numbers differs between X52 and X52 Pro at
least if your config was correct for *nix.

Also I'm working on a use for the third mode (aircraft specific) as well as some
other features. The mouse button/axes I want to use in X11 to control the mouse
if possible, haven't got around to investigating if that is possible yet 
however.

If you want I can mail you my current config but it is not in a state to be put
in CVS currently.
 
 Thanks for your effort!!
 
 Tat
 
 On Dec 4, 2007, at 4:45 PM, AnMaster wrote:
 
 I have made a joystick config for Saitek X52 Pro: the axis numbers  
 and button
 numbers differ from the normal X52.
 
 This is an early version, I expect it to change as I find what is  
 useful and
 what isn't. If someone want to put it in CVS, the file is attached.
 
 Regards,
 
 AnMaster
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHWaogWmK6ng/aMNkRCr1lAKC1mOtQGULEh9FJ/oRYl+MlyRBusgCeM7c5
UNdhW5S03IZqFTNCuNqFB9U=
=mB7m
-END PGP SIGNATURE-

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel