Main > Software Forum

New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)

<< < (19/47) > >>

mybrainhurtz:
First off, I want to thank you for all of your hard work! I recently added a front USB panel to my cab so I could add additional controllers for 4 player games and was struggling with key mapping. This little utility will solve all of my woes :)

I have been working my way through my cfg file and came to an entry that I am not sure how to deal with.


--- Code: ---       
       <controller id="GP-Wiz+">
   <input>           

           <...>

            <port type="VOLUME_DOWN">
                <newseq type="standard">
                    JOYCODE_3_BUTTON26 MOUSECODE_3_XAXIS_NEG_SWITCH
                </newseq>
            </port>
            <port type="VOLUME_UP">
                <newseq type="standard">
                    JOYCODE_3_BUTTON26 MOUSECODE_3_XAXIS_POS_SWITCH
                </newseq>
            </port>
    </input>
        </controller>

        <controller id="Spinner">
            <input>

            </input>
        </controller>


--- End code ---

I want to use the pause button on my GP-Wiz+ and the TurboTwist2 Spinner that registers as Mouse3 to adjust the volume on the cab. How do I reference inputs from two different controllers to affect a single port?

I suppose an alternative option would be to rewire my pause button to one of the mouse button leads on the spinner interface... if there is one.

Thanks!

drventure:
I'd probably try something like cabvol or 3rvx before trying to map name keys for that.

That way, it'd work across everything, not just mame

mybrainhurtz:
I was initially using cabvol but I thought perhaps I could simplify things by doing it in mame. Currently I have to run JoyToKey to get a keypress for my pause button, and then cabvol to change the volume.

Thanks for the quick reply!

nick3092:
So, I'm trying to get this running with MESS as well since it uses the MAME cfg/ctrlr layout as well.  I have a number of USB adapters for the various original controllers that this would be very useful for.  So far, it works fine for most controllers.

The exception being controllers with keypads (Coleco, Intv, Jag, etc..), due to the way MAME/MESS configure the input for a keypad.  It appears to ID everything as "KEYPAD" but there is a "mask" number that some how translates into the specific button on the keypad.  And ControllerRemap ignores that mask, and winds up assigning all 12 buttons to a single keypad entry.


For example, my config that is read in looks like this:

--- Code: ---        <port tag=":SAC_KEYPAD1" type="KEYPAD" mask="1" defvalue="1">
          <newseq type="standard">
                    JOYCODE_BUTTON19
                </newseq>
        </port>
        <port tag=":SAC_KEYPAD1" type="KEYPAD" mask="2" defvalue="2">
          <newseq type="standard">
                    JOYCODE_BUTTON9
                </newseq>
        </port>
        <port tag=":SAC_KEYPAD1" type="KEYPAD" mask="4" defvalue="4">
          <newseq type="standard">
                    JOYCODE_BUTTON10
                ...

--- End code ---

But after it's read in, ControllerRemap lumps everything under a single "KEYPAD" entry:

--- Code: ---      <port type="KEYPAD" tag=":SAC_KEYPAD1" mask="1" defvalue="1">
        <newseq type="standard">
                    JOYCODE_1_BUTTON19
                 OR
                    JOYCODE_1_BUTTON9
                 OR
                    JOYCODE_1_BUTTON10
                 OR
                 ...

--- End code ---

Would it be hard to add handling for keypad devices, so that it maps them uniquely based on the mask value?

drventure:
Interesting. I hadn't run into that MASK setting before.

I'll see what I can come up with, and let you know.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version