Main > Lightguns
Ok we have lightgun support, now what?
(1/9) > >>
Howard_Casto:
Before actlabs decided to make their guns (Which might be released before the end of the year ;) )  Alot of people were attempting to hack nes zappers to work in mame.  Their main stumbling block seemed to be the fact that mame didn't have the proper drivers yet.  Now that it does I'm curious to know if anyone who was working on this has tried their zapper in mame.  I think the actlabs guns will be great for vga monitors, but those of us with tv's and arcade monitors need another solution.  (I know they plan to make a tv version too, but at the rate they are going it could be years from now.)  

If you were hacking a gun please try it now and let us know if there is any progress or if the new driver changes are exclusive to the actlabs gun.  
u_rebelscum:

--- Quote ---....let us know if there is any progress or if the new driver changes are exclusive to the actlabs gun.  
--- End quote ---

I looked at the source code, and any mouse-type light gun  should work.  I don't have a light gun, so I can't say if any others really work or not.
Howard_Casto:
Does mame calculate the x and y coordinates itself, or does it rely upon the drivers of the light gun?  If it gets the coordinates itself then you could very cheaply build a light gun, or even better hack one from an old nes/snes/ect light gun.  All one would need to do is wire the fire button and the light sensor through the parallel port.  I think that step has already been accomplished.  
Sasquatch!:
I plan on using a TV for my next cab, and it would be sweet to have light gun support.  I anxiously await.
u_rebelscum:

--- Quote ---Does mame calculate the x and y coordinates itself, or does it rely upon the drivers of the light gun?
--- End quote ---

Yes to both; it relies on the driver to get the initial location and then translates into a standard "res".

Mame gets the cursor location with the win32 API GetCursorPos() call, then rounds the X & Y values from -128 to 128.  
The new code is in src/windows/input.c: osd_lightgun_read() if you want to check it out.
Navigation
Message Index
Next page

Go to full version