28 Mar 2017, 09:47

Oui oui ça l 'air d'être le cas, voici le howto ci-dessous mais il y a 2 choses que je ne saisie pas.

  1. "right value for input_map[p1_lightgunx] ," comment on fait pour trouver cette valeur?
  2. quelle commande il faut utiliser pour identifier l'ID usb du gun?

Le howto :

Configuration

edit ~/.advance/advmame.rc

set the following:

device_mouse none to disable the support for mouse even if the gun is configured to report as a mouse

device joystick event to ask advmame to use linux event interface

Next you need to configure the gun itself, especially the different axes. For player 1 you need to find the right value for input_map[p1_lightgunx] and input_map[p1_lightguny]

Assuming you have configured the gun to use device ID 0x1601, the configuration is:

input_map[p1_lightgunx] joystick[d209_1601_2,0,0]

input_map[p1_lightguny] joystick[d209_1601_2,0,1]

d209 is the usb vendor Id of the gun (fixed value)
1601 is the usb product Id
2 is the usb device interface (fixed value)
Then configure the trigger.

input_map[p1_button1] joystick_button[d209_1601,0]