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: Using arcade light guns with MAME  (Read 2096 times)

0 Members and 1 Guest are viewing this topic.

sgould

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:November 24, 2018, 11:50:42 pm
Using arcade light guns with MAME
« on: September 01, 2017, 05:20:14 pm »
I have a Sammy trophy hunting cabinet with jamma harness. Is there a way to use the 2 sammy shotgun light guns with a MAME setup?

Thanks for taking the time to look and answer this.

lilshawn

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7398
  • Last login:Yesterday at 06:47:27 pm
  • I break stuff...then fix it...sometimes
Re: Using arcade light guns with MAME
« Reply #1 on: September 01, 2017, 06:54:40 pm »
short answer, no

longer answer...

The logic to determine where the optic gun is pointed is on the host hardware, not the gun itself. There is no standard, but they all work basically the same way.

1. The gun does not emit light but senses the light from the monitor screen. The gun always sees a spot on the screen where it is pointed and gives a negative going 5 volt pulse to the game whenever that spot is illuminated. The signal is a pulse train of about 7 pulses, separated in time by whatever the horizontal frequency is, every time that particular spot is refreshed. (Only one pixel is illuminated at a time, but it's so fast it looks to the eye like they are all illuminated all the time).

2. The game knows which pixel on the screen is illuminated at any given time as it displays each video frame.

3. If the game gets a signal from the gun optics when it aims at an illuminated pixel and it knows which pixel is illuminated at any given time it therefore can determine where the gun is pointed on the screen.

4. If the trigger is pulled (negative going 5 volt pulse that stays low as long as the trigger is held) the game checks to see where the gun is pointed and determines if is a target or not and reacts accordingly.

5. A screen flash is done by the game (usually for one or two frames) whenever the trigger is pulled to make sure the gun can see a spot at that time. If this was not done, you would not be able to shoot dark targets because the gun would not see it.

The counting system for the gun position is such a finicky bastard it's literally a fraction of a fraction of a second. a single frame take 1/60th of a second... one VGA pixel is 1/307,200 of 1/60th of a second...1/60 second is 16.67 milliseconds...math it up.

ark_ader

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5645
  • Last login:March 02, 2019, 07:35:34 pm
  • I glow in the dark.
Re: Using arcade light guns with MAME
« Reply #2 on: September 01, 2017, 11:16:52 pm »
Easier to swap out the insides with IR lightguns.  Then mame away.
If I had only one wish, it would be for three more wishes.

sgould

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:November 24, 2018, 11:50:42 pm
Re: Using arcade light guns with MAME
« Reply #3 on: September 02, 2017, 02:55:55 pm »
Thanks for the answers. I think I will look at getting 2 guns or inserts from ultimarc. I must say what a teriffic answer lilshawn totally explained what the dificulties are.

Titchgamer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4222
  • Last login:December 17, 2023, 08:05:48 am
  • I have a gaming addiction.....
Re: Using arcade light guns with MAME
« Reply #4 on: September 02, 2017, 03:27:12 pm »
You could get some aimtrak inards from ultimarc then retro fit them to your existing guns

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1746
  • Last login:March 30, 2024, 09:10:09 am
  • I want to build my own arcade controls!
Re: Using arcade light guns with MAME
« Reply #5 on: September 02, 2017, 10:23:00 pm »
I looked into this but since i got a 27" CRT TV and a 32" CRT TV I decided to pick up a ps2 cheap to mod and some guncon2's off ebay.
I also picked up a cheap wii and have modded that and got some cheap wii zapper "guns".
I may even pick up a ps1 and some dual mode guns for the games not on the PS2 or wii.

I will be using those for my shooter games because honestly it was cheaper than two aimtraks and way easier.