GroovyMAME icon indicating copy to clipboard operation
GroovyMAME copied to clipboard

lightgun udev driver

Open nadenislamarre opened this issue 3 years ago • 0 comments

this is an udev driver for lightguns. This is done initially for batocera.org.

  • probably if are missing for windows/mac.
  • it assumes that mouse buttons are : BTN_LEFT, BTN_RIGHT, BTN_MIDDLE, BTN_1, BTN_2, BTN_3, ... (which is the case for guns having more than 3 buttons on batocera for BTN_X)
  • inputs are sorted by /dev/input/eventX. This is more a batocera requirement. I can externalize this part. but for automatisation, it is required to find a determinist way to list guns/mouse order.
  • this way, you can use mame without xorg (for the gun part), and you can use several guns, and you're not stuck with xorg issues for mouses (guns) having more than 3 buttons.

Signed-off-by: Nicolas Adenis-Lamarre [email protected]

nadenislamarre avatar Jul 05 '22 20:07 nadenislamarre