Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I'm trying to play some light gun games on Mame and Mame32. I tried mame gamename -offscreen_reload -mouse, and that didn't work, even though the wiki faq specifically says that this is the way to make this possible. It's supposed to make Player 1 Button 2 an 'off-screen reload' button.

I tried with multiple roms.

share|improve this question
    
What type of (light)gun are you packin'? –  Krazer Jan 4 '12 at 22:41
    
Using a keyboard and mouse, actually. I am able to configure mame to accept keyboard and mouse to move the gun sight and fire, but I can't find a way enable reload. –  Wolfpack'08 Jan 5 '12 at 1:35
    
@Wolfpack'08, check my answer. I updated it just now, from my research, the only way to get button 2 bound to "offscreen reload" is to use a lightgun. There's no support in MAME for mouse buttons mapped to this functionality. –  agent86 Jan 5 '12 at 16:30
add comment

1 Answer

up vote 6 down vote accepted
+50

Offscreen reload is only an option if you're using a light gun - it overrides button 2 of the light gun to set the position of the gun off the edge of the screen and also counts as a "fire" operation.

The MAME manual describes it thus:

Controls whether or not MAME treats a second button input from a lightgun as a reload signal. In this case, MAME will report the gun's position as (0,MAX) with the trigger held, which is equivalent to an offscreen reload. This is only needed for games that required you to shoot offscreen to reload, and then only if your gun does not support off screen reloads. The default is OFF (-nooffscreen_reload).

I dug into the source of the input code, and found the section where it checks the offscreen_reload switch. It's only used when lightguns are used for input. The command line switch is mapped to a instance variable called "m_device.lightgun_reload_button" which is only checked if the input device is a lightgun. See src/input/emu.c for more details.

Therefore, this won't work with the mouse - you'll have to move the cursor to the edge of the screen and press FIRE, and this will only work if you're playing a game that supports offscreen reload (not all games had a "reload" function).

It seems like it might be possible to change the source to add a feature like you'd want, but that's something you'd probably want to ask the developers of MAME with assistance with.

share|improve this answer
    
Great info. I hope the source code will be updated, some day. I did try going to the edge of the screen and clicking, and it did not work. But it may be possible to play in windowed mode and somehow allow the mouse to escape the window? Hard to say without trying. I'll let you know the results. Also, your gaming. Sick avatar. –  Wolfpack'08 Jan 6 '12 at 10:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.