Es/Joystick: Difference between revisions

Jump to navigation Jump to search
Line 31: Line 31:
Esta linea nos indica que un joystick has sido identificado por si mismo como un SAITEK CYBORG 3D USB al sistema operativo. Este no nos dice que el driver vea tu joystick. Si esta trabajando bajo Windows, el metodo de arriba no funciona, pero aun puedes acudir al siguieente parrafo.
Esta linea nos indica que un joystick has sido identificado por si mismo como un SAITEK CYBORG 3D USB al sistema operativo. Este no nos dice que el driver vea tu joystick. Si esta trabajando bajo Windows, el metodo de arriba no funciona, pero aun puedes acudir al siguieente parrafo.


===Confirming that the driver recognizes your joystick===
===Confirmar que el driver reconoce tu joystick===
FlightGear ships with a utility called js demo. It will report the number of joysticks attached to a system, their respective “names”, and their capabilities. Under Linux, you can run js demo from the folder /FlightGear/bin as follows:  
FlightGear viene equipado con una utilidad que se llama js demo. Esta reporta el numero de joystick conectado al sistema, sus respectivos “nombres”, y sus capacidades. Bajo GNU/Linux, puedes ejecutar js demo desde la carpeta /FlightGear/bin como sigue:  


  $ cd /usr/local/FlightGear/bin  
  $ cd /usr/local/FlightGear/bin  
  $ js_demo  
  $ js_demo  


Under Windows, open a command shell (Start>All Programs>Accessories>Command Prompt), go to the FlightGear binary folder and start the program as follows (given FlightGear is installed under '''c:\Flightgear''')  
Bajo Windows, abre la ventana de comandos (Start>All Programas>Accessorios>Simbolo de Sistema), ve a la carpeta binaria de FlightGear e inicia el programa como sigue (entendiendo que FlightGear este instalado en '''c:\Flightgear''')  


  cd \FlightGear\bin\Win32  
  cd \FlightGear\bin\Win32  
  fgjs.exe  
  fgjs.exe  


On our system, the first few lines of output are (stop the program with C if it is quickly scrolling past your window!) as follows:  
En tu sistema, las primeras lineas de salida son (para el programa con C si este hace scroll rápidamente y se sobrepasa la ventana!) como sigue:  


  Joystick test program.  
  Joystick test program.  
Line 59: Line 59:




First note that js demo reports which number is assigned to each joystick recognized by the driver. Also, note that the “name” each joystick reports is also included between quotes. We will need the names for each bindings file when we begin writing the binding xml files for each joystick.
Primero has de notar que js demo reporta que numero es asignado a cada palanca de mando reconocida por el driver. Tambien, haz de notar que el “nombre” de cada joystick reportado está tambien incluido entre comillas. Necesitaremos los nombres para cada archivo de interconexión cuando comenzemos a escribir los archivos de interconexión xml para cada palanca de mandos.


===Identifying the numbering of axes and buttons===
===Identifying the numbering of axes and buttons===
5,810

edits

Navigation menu