Hello headkaze
I tried the latest version (2.04) this morning. It fixes the joystick issues I had! Nice!
However, I think there is some more changes needed for the mouse codes to work fine. I cant get the labels to work for my trackball or spinner.
On my cabinet the trackball is mouse #4 and the spinner is mouse #5 so their inputs are configured as follow in mame "default.cfg":
<port type="P1_TRACKBALL_X">
<newseq type="standard">
MOUSECODE_4_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P1_TRACKBALL_Y">
<newseq type="standard">
MOUSECODE_4_YAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P1_DIAL">
<newseq type="standard">
MOUSECODE_5_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
In your Mousecodes.txt, there is no codes for the analog mouse axis (ie. MOUSECODE_4_XAXIS), only the codes for digital emulation of analog devices are there (MOUSECODE_4_XAXIS_NEG_SWITCH & MOUSECODE_4_XAXIS_POS_SWITCH).
I tried to add the analog input into the mousecodes (MOUSECODE_4_YAXIS & MOUSECODE_4_XAXIS) files and map it to the player #1 trackball as follow in the std.ini :
P1_TRACKBALL_X "MOUSECODE_1_LEFT|JOYCODE_1_LEFT|KEYCODE_LEFT|JOYCODE_1_LEFT_LEFT_SWITCH|MOUSECODE_4_XAXIS"
but it didnt work.
Something I am wondering for analog mouse (trackball and spinner) is how we will be able to define label for "up", "down", "left", etc... because mame has just an analog input code per axis? If you understand what I mean.
There is no issue when emulating an analog trackball with a digital device beause for this mame has two input codes, one to increase the axis value and one to decrease the axis values (ie, right and left on an X axis).