Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: caskad on January 30, 2012, 02:35:31 pm

Title: compile groovymame include jlgraw (advance lightgun support)
Post by: caskad on January 30, 2012, 02:35:31 pm
Hello,

Quote
Implementation of a lightgun driver using the Windows XP "Raw Input" API.
 * SMOG Lightgun (http://lightgun.splinder.com/ (http://lightgun.splinder.com/))
 * Acts Labs Lightgun (http://www.act-labs.com/ (http://www.act-labs.com/))
+ EMS drivers

this was a great feature in advanceMame, and the source are available using Joystick driver "lgrawinput".

http://www.koders.com/c/fidCAF1B6A0A00BF517B3CD5A310BB6BF6EF7980BAC.aspx?s=%22sam%22#L23 (http://www.koders.com/c/fidCAF1B6A0A00BF517B3CD5A310BB6BF6EF7980BAC.aspx?s=%22sam%22#L23)

and complete source script:

http://www.koders.com/info.aspx?c=ProjectInfo&pid=ENY5RP8HA9PHQQ8FZAGALF5CDH (http://www.koders.com/info.aspx?c=ProjectInfo&pid=ENY5RP8HA9PHQQ8FZAGALF5CDH)

I'm not able to understand how it works to add them on groovy, but open source means esay compilation ?

I can't test right now, because advancemame don't work on XP64...

But on xp 32 with calamity's drivers, i have this calibration working nicely with opération wolf (moving accros the screen with correct resolution).

This could be great idea to have this on groovymame for people who don't have money for IR GUN ;)

Dunno if i can help for testing or helping, but it's rock.

that was an idea for completing this wonderfull work !
Title: Re: lightgun support? (EMS, wingun, smog driver)
Post by: Calamity on January 30, 2012, 04:02:52 pm
Hi caskad, thanks for posting this.

Lightgun stuff is a completely unknown to me, I don't have the hardware to test and I can't even figure out what the autocalibration issue is all about. However, let's see if someone has some ideas on how to integrate this in GroovyMAME.
Title: Re: Autocalibration with lightgun (EMS, smog driver) in GroovyMame
Post by: caskad on January 30, 2012, 06:29:42 pm
From Habemus lightgun blog :)

Quote
This sounds like great news, but not all of us use advMame. Is this going to hinder the other users in anyway? i.e. Mamewah, mame32, etc. etc.


Quote
I'm here :)

When something will work for AdvanceMAME will be easy to port it to other emulators and frontends.

Andrea Mazzoleni


Hope this become true :)

+

Quote
3.2.6 lgrawinput - Light Gun (Windows XP)

This driver works in Windows XP and it support lightguns using the Windows mouse interface.
It supports more than one lightgun at the same time of the following types:

SMOG Lightgun (http://lightgun.splinder.com/ (http://lightgun.splinder.com/))
Acts Labs Lightgun (http://www.act-labs.com/ (http://www.act-labs.com/))
The lightgun is automatically calibrated before every use. You must move the lightgun over the whole screen every time the program starts or changes video mode.

it's seem to be just a "driver" who add this in mame.ini

Quote
6.2.1 device_lgrawinput_calibration

Select the type of calibration of the lightgun.
device_lgrawinput_calibration auto | none

Options:
auto    Automatically calibrates the lightgun before every use. You must move the lightgun over the whole screen every time the program starts or changes video mode (default).
none    Never calibrates the lightguns, but it assumes that the returned values are already scaled in the range 0 - 65536.

There must be a way to include this with advmame open source :laugh:
Title: Re: compile groovymame include jlgraw (advance lightgun support)
Post by: Calamity on January 31, 2012, 05:38:30 pm
Thanks caskad, I'll have a look at it at some point.