Es/Joystick: Difference between revisions

Jump to navigation Jump to search
195 bytes added ,  29 September 2010
Line 203: Line 203:
Desafortunadamente, no hemos encontrado la forma de que funcionen los pedales tambien, de esta forma. Por tanto, en casos como este (y otros) tendrás que intentar un metodo alternativo para asignar los controles del joystick.
Desafortunadamente, no hemos encontrado la forma de que funcionen los pedales tambien, de esta forma. Por tanto, en casos como este (y otros) tendrás que intentar un metodo alternativo para asignar los controles del joystick.


==Joystick support via .fgfsrc entries==
==Soporte de Joystick usando entradas.fgfsrc==
Fortunately, there is a tool available now, which takes most of the burden from the average user who, maybe, is not that experienced with XML, the language which these files are written in.  
Afortunadamente, hay una herramienta ahora disponible, la cual lleva la mayor parte de la carga del usuario medio quien, quizas, no está esté experimentado con XML, el lenguaje con el cual esos archivos han sido escritos.  


For configuring your joystick using this approach, open a command shell (command prompt under windows, to be found under Start|All programs|Accessories). Change to the directory '''/FlightGear/bin''' via e.g. (modify to your path)  
Para configurar tu palanca de mando usando esta aproximación, abre el interprete de comandos (la ventana de comandos bajo windows, se puede encontrar en Start|Todos los Programas|Accesorios). Cambia al directorio '''/FlightGear/bin''' de esta forma e.j. (modificado a tu ruta)  


'''cd c:\FlightGear\bin'''  
'''cd c:\FlightGear\bin'''  


and invoke the tool fgjs via
e invoca la herramienta fgjs de esta forma


'''./fgjs'''  
'''./fgjs'''  


on a UNIX/Linux machine, or via
en una máquina UNIX/Linux , o de esta forma


'''fgjs'''  
'''fgjs'''  


on a Windows machine. The program will tell you which joysticks, if any, were detected. Now follow the commands given on screen, i.eṁove the axis and press the buttons as required. Be careful, a minor touch already “counts” as a movement. Check the reports on screen. If you feel something went wrong, just re-start the program.  
en una máquina windows. El programa te dirá que palancas de mandos, si las hubiera, fueron detectadas. Ahora sigue los comandos dados en pantalla, por ejemplo mueve un eje y presiona los botones requeridos. Ten cuidado, un mínimo toque "cuenta" como un movimiento. Comprueba el informe en pantalla. Si notas que algo fué mal, reinicia el programa.  


After you are done with all the axis and switches, the directory above will hold a file called fgfsrc.js. If the FlightGear base directory FlightGear does not already contain an options file .fgfsrc (under UNIX)/system.fgfsrc (under Windows) mentioned above, just copy
Despues de que lo hagas con todos los ejes y botones, el directorio de arriba colgará un archivo llamado fgfsrc.js. Si el directorio base de Flightgear no contiene un archivo de opciones .fgfsrc (bajo sistemas UNIX)/system.fgfsrc (bajo Windows) mencionado arriba, entonces copia


'''fgfsrc.js''' into '''.fgfsrc''' (UNIX)/'''system.fgfsrc''' (Windows)  
'''fgfsrc.js''' dentro de '''.fgfsrc''' (UNIX)/'''system.fgfsrc''' (Windows)  


and place it into the directory FlightGear base directory FlightGear. In case you already wrote an options file, just open it as well as fgfsrc.js with an editor and copy the entries from fgfsrc.js into .fgfsrc/system.fgfsrc. One hint: The output of fgjs is UNIX formatted. As a result, Windows Editor may not display it the proper way. I suggest getting an editor being able to handle UNIX files as well (and oldie but goldie in this respect is PFE, just make a web search for it). My favorite freeware file editor for that purpose, although somewhat dated, is still PFE, to be obtained from
y colocalo dentro del directorio base de Flightgear. En caso de que hallas escrito un archivo de opciones, abrelo tambien como fgfsrc.js con un editor y copia las entradas desde fgfsrc.js adentro de .fgfsrc/system.fgfsrc. Una advertencia: La salida de of fgjs es formato UNIX. Como resultado, los editores Windows no deberian mostrarlo en la forma adecuada. Sugiero usar un editor que sea capaz de manejar tambien formatos UNIX (un viejo pero adorado en este respecto es  PFE, para ello haz una busqueda en la red). Mi editor freeware de archivos favorito para este proposito, aunque algo anejado, todavia es  PFE, que puede ser obtenido en


http://www.lancs.ac.uk/people/cpaap/pfe/.  
http://www.lancs.ac.uk/people/cpaap/pfe/.  
5,810

edits

Navigation menu