Difference between revisions of "Command line/fr"

From GIMX
Jump to: navigation, search
(Created page with "Dans un terminal:<br/> emuclient --config file_name --serial --port /dev/ttyUSBX --joystick --precision 16 --refresh 4")
(Created page with "options pour emuclient : * file_name :Le nom du fichier de config, dans le répertoire ~/.emuclient/config directory (ex : toto.xml).<br /> :Cet argument est obligatoire. * --...")
Line 39: Line 39:
 
</span>
 
</span>
  
emuclient options:
+
options pour emuclient :
 
* file_name
 
* file_name
:The name of the config file, in the ~/.emuclient/config directory (ex : toto.xml).<br/>
+
:Le nom du fichier de config, dans le répertoire ~/.emuclient/config directory (ex : toto.xml).<br />
:This argument is mandatory.
+
:Cet argument est obligatoire.
 
* --serial --port /dev/ttyUSB0
 
* --serial --port /dev/ttyUSB0
:The serial port. Ex: /dev/ttyUSB0 in Linux, COM4 in windows.<br/>
+
:Le port série. Ex: /dev/ttyUSB0 sous Linux, COM4 sous windows.<br />
:Only mandatory for the DIY USB adapter.
+
:Seulement obligatoire avec un adaptateur USB DIY.
 
* --joystick / --GPP / --360pad / --Sixaxis / --PS2pad
 
* --joystick / --GPP / --360pad / --Sixaxis / --PS2pad
:The type of USB adapter.
+
:Le type d'adaptateur USB.
 
* --precision 16
 
* --precision 16
:The axis precision. Joystick: 16, Other adapters: 8.
+
:La précision des axes. Joystick: 16, Autres adaptateurs: 8.
 
* --refresh 4
 
* --refresh 4
:The refresh period, in ms.<br/>
+
:La période de rafraîchissement, en ms.<br />
:Recommended values:<br/>
+
:Valeurs recommandées:<br />
:joystick/GPP/360pad/Sixaxis: 4 (250Hz)<br/>
+
:joystick/GPP/360pad/Sixaxis: 4 (250Hz)<br />
 
:PS2pad: 16 (62.5Hz)
 
:PS2pad: 16 (62.5Hz)
  

Revision as of 19:28, 27 June 2012

Other languages:
English • ‎français

Motivation

Ce n'est pour l'instant pas pour les performances, mais une future version pourrait être capable de s'exécuter depuis un terminal Linux sans nécessiter d'environnement graphique.
Cela améliorerait les performances sur tout type de matériel, en particulier sur les petites matériels comme le raspberry pi ou les clients légers.
C'est aussi utile pour d'autres applications comme l'automatisation.

Linux + bluetooth

Dans un terminal:

 emu ps3_mac_address bt_device_index sixaxis_index

  • ps3_mac_address
Cet argument est obligatoire.
  • bt_device_index
L'index du périphérique bluetooth (ex : 0 pour hci0, 1 pour hci1, etc).

Cet argument est optionnel, l'index par défaut est 0.

  • sixaxis_index
L'index du sixaxis (ex : 0 pour le sixaxis 1, 1 pour le sixaxis 2, etc).
Cet argument est optionnel, l'index par défaut est 0.

Dans un autre terminal:

 emuclient --config file_name

  • file_name
Le nom du fichier de config, dans le répertoire ~/.emuclient/config directory (ex : toto.xml).
Cet argument est obligatoire.
Utiliser des backslashs pour échaper les espaces.

Linux ou Windows + DIY USB adapter ou GPP

Dans un terminal:

   emuclient --config file_name --serial --port /dev/ttyUSBX --joystick --precision 16 --refresh 4

options pour emuclient :

  • file_name
Le nom du fichier de config, dans le répertoire ~/.emuclient/config directory (ex : toto.xml).
Cet argument est obligatoire.
  • --serial --port /dev/ttyUSB0
Le port série. Ex: /dev/ttyUSB0 sous Linux, COM4 sous windows.
Seulement obligatoire avec un adaptateur USB DIY.
  • --joystick / --GPP / --360pad / --Sixaxis / --PS2pad
Le type d'adaptateur USB.
  • --precision 16
La précision des axes. Joystick: 16, Autres adaptateurs: 8.
  • --refresh 4
La période de rafraîchissement, en ms.
Valeurs recommandées:
joystick/GPP/360pad/Sixaxis: 4 (250Hz)
PS2pad: 16 (62.5Hz)

General emuclient options

  • --curses
curses terminal display.
Mouse calibration is available through this interface.
  • --status
Display controls in the terminal.
  • --nograb
Do not grab the mouse cursor.
  • --force-updates
Send button+axis status even if there is no change (for compatibility with games like DNF).
  • --subpos
Improve stick precision (counteract rounding issues).
  • --keygen key
Generate a key press at emuclient startup.
The main use case for this is the automation of macro's execution.
Events that are not generated by macros are ignored.
The only way to quit is to add KEYDOWN ESCAPE at the end of the macro, or use --nograb and press ctrl+c into the terminal.
Another use case is the sending of a single command (it requires to use a macro as no key up event is generated).