Main > Main Forum

Assigning Mice to steering wheels on MAME

<< < (2/2)

tk007b:
Thank you SO much guys. There's lots to unpick here.

Firstly, my 2 spinners are identically named in HID and PID, so it's slightly more complicated but I suspect that would be the same with 2 x Ultimarc Spinners.  I need to experiment with the .cfg file.

I also like the idea of being able to change the AXIS, this could actually be a much simpler way of fixing my issue, as I could just come up with 3 axis and just use those.

Where I was stuck, I now have a lot to process, so I'll work on it and report back with my results !

:-)

PS -  It's SUCH a shame that you cannot rename the HID entries in Device Manager, otherwise it would be as easy as cake. Anyway ... will all be worth it :-)

tk007b:
ok,

I watched the video and copied it as best as I could. I have created the MARemapControls.cfg file and I entered the details correctly (without the .cfg) in MAME.ini. The MAME exe starts afterwards -   so far so good.

Now the bit that the video doesn't show. How do I map the newly named/Fixed controllers to the various player inputs ?

For example, this is part of my file


--- Code: ---<?xml version="1.0"?>
<mameconfig version="10">
    <system name="default">
        <input>
            <!-- Steering Wheels -->
            <mapdevice device="PID_8036" controller="MOUSECODE_2" name="Steering Wheel 1" />
            <mapdevice device="PID_8036" controller="MOUSECODE_3" name="Steering Wheel 2" />
--- End code ---

So my question is where do I see "Steering Wheel 1" or "Steering Wheel 2" within MAME.


Many thanks, as always ..

PS - I am aware that the PID ID's are the same, that's because I used 2 arduino Micro's for encoders and their details are identical

PL1:
Another thing that you may find useful is Jakobud's ConfigGenerator MAME plugin.

https://github.com/Jakobud/configgenerator


Scott

tk007b:
Thank you, but I'm still struggling. Hopefully, it will be better when everything is plugged in and the device names represent the same mouse/HID devices each time.

The Jakobud config, seems to use MOUSE-numbers as reference points but that goes to crap, when the numbers change when you restart the PC or add a new USB device.  It might just be the way I am setting things up, as I wish to power off the light-guns until I need them and the same for the steering wheels.

This is what the jakobud config looks like

--- Code: ---            <!-- Dial -->
            <port tag=":LETA0" type="P1_DIAL" mask="255" defvalue="0">
                <newseq type="standard">
                    MOUSECODE_7_XAXIS
                </newseq>
                <newseq type="increment">
                    KEYCODE_RIGHT
                </newseq>
                <newseq type="decrement">
                    KEYCODE_LEFT
                </newseq>
            </port>

            <!-- Dial 2 -->
            <port tag=":LETA1" type="P2_DIAL" mask="255" defvalue="0">
                <newseq type="standard">
                    MOUSECODE_5_XAXIS
                </newseq>
                <newseq type="increment">
                    KEYCODE_G
                </newseq>
                <newseq type="decrement">
                    KEYCODE_D
                </newseq>
            </port>
--- End code ---

but if MOUSECODE7 or MOUSECODE5 represents a different device, after adding a device or rebooting, then your screwed.

The video from BigMouth was the most promising as it was supposed to look at the PID/UID valuesbut I have 2 devices with the same PID and UID, so it gets things in a twist.

I will leave it until everything is plugged in and try again .. or if still no joy then quickly map the steering wheels correctly when I start the game (not ideal)

Thanks anyway!  :-\

PS - FYI the manual workaround is to:
1. Start the game (ssprint) in MAME
2. Press TAB and then select  INPUT SETTINGS, INPUT SETTINGS (THIS SYSTEM)
3. Delete the value for DIAL P1, press enter and move the relevant steering wheel
4. Repeat step 3 for DIAL P2 and, if needed DIAL P3
then continue to play the game.

Will report back if/when I make more progress! - cheers :)

Navigation

[0] Message Index

[*] Previous page

Go to full version