Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Aimtrak lightguns on linux  (Read 1093 times)

0 Members and 1 Guest are viewing this topic.

the_gamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 80
  • Last login:September 02, 2020, 03:44:06 pm
Aimtrak lightguns on linux
« on: September 02, 2020, 03:41:00 pm »
Hi there,

I found many topics here but no configuration I found got those lightguns to work.
Best I get is when putting
[source]
SUBSYSTEMS=="usb", ATTRS{idVendor}=="d209", MODE="0666"
[/source]
in /etc/udev/rules.d/99-aimtrak.rules and nothing in my X11. Whenever I put anything according to the guns in my X11, the guns won't work at all. This way they work as my mouse.

But I need to get them to work in mame. Only thing mattering in mame.conf seems to be

lightgun                  1

any other option does not change anything. Even
lightgun_device           lightgun
does the same as
lightgun_device           mouse

I can shoot by pressing left ctrl and moving the cursour with my mouse. Assigning the gun buttons to fire won't work at all. I can assign the left mouse button but the gun trigger will do nothing in mame. Only thing the gun does in mame is whenever i am pointing it at the screen, the lightguncursor is glued to the lower right corner of the screen and it can't be moved until the gun does not point to the screen anymore.

Also the praised https://github.com/gunpadawan/gunconf seems to be that much deprecated that after showing the start screen and how much guns it detected, it needs me to pull a trigger. After that it goes into an endless loop. I can see an error after killing it:

Exception ignored in: <function InputDevice.__del__ at 0x7f7ae3831a60>
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/evdev-1.3.0-py3.8-linux-x86_64.egg/evdev/device.py", line 159, in __del__
  File "/usr/lib/python3.8/site-packages/evdev-1.3.0-py3.8-linux-x86_64.egg/evdev/device.py", line 304, in close
  File "/usr/lib/python3.8/site-packages/evdev-1.3.0-py3.8-linux-x86_64.egg/evdev/eventio_async.py", line 54, in close
  File "/usr/lib/python3.8/asyncio/events.py", line 639, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-1'.

This issue is known but the developer does not care: https://github.com/gunpadawan/gunconf/issues/7

So you got any advice on how to get those to work?
« Last Edit: September 02, 2020, 03:44:14 pm by the_gamer »