MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

joey35car
MAME Fan
Reged: 02/07/07
Posts: 1112
Loc: Planet Claire
Send PM


config joystick in mess for intv
#295917 - 09/16/12 07:36 PM


Well I have everything working but the diagonals in tron-deadly discs. I try and map the number 1,3,7,9 to the diagonals to my joystick but it still doesn't throw the disc diagonally in the game but when I hit the number keys 1,3,7,9 it works. Is there a way to map these so the diagonal works?

Thanks



H@P
Lurker in perpetuity
Reged: 09/22/03
Posts: 234
Loc: Seattle area
Send PM


Re: config joystick in mess for intv new [Re: joey35car]
#296152 - 09/19/12 09:07 PM


It's no wonder you're having problems getting it working. I know what the potential issues are, and I'm still having problems making it work. This might get a bit technical, but I'll try to explain.

Because of the way the intv controller works, disc inputs, keypad inputs and side-button inputs all get mashed together in a sorta elegant, sorta messy kinda way. The disc supports 16-positions, but the default MESS mapping is trying to use a digital joystick to map to it, which doesn't work as you'd expect. If you notice, you can't really run truly diagonally, you run *sorta* diagonally.

So the first thing you'd probably want to do is in the TAB menu, go to "Driver Configuration" and change each disc from "Digital" to "Analog". This allows you use an analog joystick to get all 16 directions, but also works great with a digital joystick, and gets you your true diagonals back.

As for mapping the keypad to a digital joystick, the first thing you'd want to do is unmap the joystick from the disc, the default MESS mapping, to prevent conflicts.

So, take Tron Deadly Discs. What I'd like to do is map the disc-throwing buttons on the INTV keypad to a joystick:
INTV keypad    maps to    joystick
----------- --------
1 up left
2 up
3 up right
4 left

etc.

However, when you press up-left on a digital joystick, two input are activated. Both up and left are pressed, and you end up with INTV keypad 1, 2 and 4 pressed (plus others, including a disc position O_o because of the whole elegant/messy thing).

At some point in MAME's history, you could map "NOT"s to prevent this behavior. What this means is the mapping should look more like this:
INTV keypad    maps to    joystick
----------- --------
1 up left
2 up NOT left NOT right
3 up right
4 left NOT up NOT down

etc.

So "up NOT left NOT right" mean pressing up, but not left or right.

I can't for the life of me get this to work for some reason. MESS won't recognize when I try to create a "NOT" while mapping, nor when I manually add a "NOT" to the .cfg file.

For now, I'd recommend downloading the MTE-201 test cart ROM. Run it, and after about 15 seconds or so, you'll reach a controller test where you can see exactly how your joystick inputs are affecting the INTV keypad.

If you (or I) can get input "NOT"s working as I mentioned above, you should have no problem using a digital stick for throwing Tron's disc.

I've done it before, I know it worked at one time.

I'll post back if I figure out anything more.

H@P



joey35car
MAME Fan
Reged: 02/07/07
Posts: 1112
Loc: Planet Claire
Send PM


Re: config joystick in mess for intv new [Re: H@P]
#296212 - 09/20/12 11:34 PM


If you get it to work properly let me know. It would be great to configure the inputs so we can enjoy the games in intellivision.



H@P
Lurker in perpetuity
Reged: 09/22/03
Posts: 234
Loc: Seattle area
Send PM


Re: config joystick in mess for intv new [Re: joey35car]
#296245 - 09/21/12 06:10 AM


I just tried it with the latest UME and my PlayStation 2 dualshock controller. Mapped the left stick to the *right* INTV disc, and mapped the right stick to the *left* INTV keypad. Sounds odd, but I just wanted to see it working.

Worked perfectly.

I couldn't map the dualshock in-game, but I saw how it maps NOTs now with the keyboard. So I tweaked the file manually and came up with this intv.cfg:
<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="intv">
<input>
<port tag=":KEYPAD2" type="KEYPAD" mask="128" defvalue="0">
<newseq type="standard">
KEYCODE_9PAD OR JOYCODE_1_ZAXIS_POS_SWITCH JOYCODE_1_RXAXIS_POS_SWITCH
</newseq>
</port>
<port tag=":KEYPAD2" type="KEYPAD" mask="256" defvalue="0">
<newseq type="standard">
KEYCODE_8PAD OR JOYCODE_1_ZAXIS_POS_SWITCH NOT JOYCODE_1_RXAXIS_NEG_SWITCH NOT JOYCODE_1_RXAXIS_POS_SWITCH
</newseq>
</port>
<port tag=":KEYPAD2" type="KEYPAD" mask="512" defvalue="0">
<newseq type="standard">
KEYCODE_7PAD OR JOYCODE_1_ZAXIS_POS_SWITCH JOYCODE_1_RXAXIS_NEG_SWITCH
</newseq>
</port>
<port tag=":KEYPAD2" type="KEYPAD" mask="1024" defvalue="0">
<newseq type="standard">
KEYCODE_6PAD OR JOYCODE_1_RXAXIS_POS_SWITCH NOT JOYCODE_1_ZAXIS_NEG_SWITCH NOT JOYCODE_1_ZAXIS_POS_SWITCH
</newseq>
</port>
<port tag=":KEYPAD2" type="KEYPAD" mask="4096" defvalue="0">
<newseq type="standard">
KEYCODE_4PAD OR JOYCODE_1_RXAXIS_NEG_SWITCH NOT JOYCODE_1_ZAXIS_NEG_SWITCH NOT JOYCODE_1_ZAXIS_POS_SWITCH
</newseq>
</port>
<port tag=":KEYPAD2" type="KEYPAD" mask="8192" defvalue="0">
<newseq type="standard">
KEYCODE_3PAD OR JOYCODE_1_RXAXIS_POS_SWITCH JOYCODE_1_ZAXIS_NEG_SWITCH
</newseq>
</port>
<port tag=":KEYPAD2" type="KEYPAD" mask="16384" defvalue="0">
<newseq type="standard">
KEYCODE_2PAD OR JOYCODE_1_ZAXIS_NEG_SWITCH NOT JOYCODE_1_RXAXIS_NEG_SWITCH NOT JOYCODE_1_RXAXIS_POS_SWITCH
</newseq>
</port>
<port tag=":KEYPAD2" type="KEYPAD" mask="32768" defvalue="0">
<newseq type="standard">
KEYCODE_1PAD OR JOYCODE_1_ZAXIS_NEG_SWITCH JOYCODE_1_RXAXIS_NEG_SWITCH
</newseq>
</port>
<port tag=":OPTIONS" type="CONFIG" mask="1" defvalue="0" value="1" />
<port tag=":OPTIONS" type="CONFIG" mask="2" defvalue="0" value="2" />
</input>
</system>
</mameconfig>

Now I have to figure out a way to make it more permanent. If UME crashes for whatever reason, it takes the .cfg file with it.

What happened to ctrlr files?!?

H@P


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 684 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2353