Is there any way to make mame or mame analog+ see the entire throw of a pedal (set up as a joystick axis) as one axis?
...
I understand the half axis thing for wheels and such where you want a clear centerpoint and two directions away from the center, but for a pedal all you want is one direction.
I think I sent you an answer through email, but for everybody else, here's the low down.
Windows mame calculates the center point internally; it does not look for any calibrated center point. This point is the center of that axis's range, calculated by a simple
(max-min)/2 + min formula. Mame uses the calculate center point as the zero point for analog stick type inputs.
Most analog stick type inputs have a -128 to 128 range (internal) to mame, but pedals are half an axis with a range from 0 to 128 (internal).
Possible fixes:
a) use the windows calibrated center point instead of calculating it
b) save the default min, max and center points of the devices, then set the min, max and center point to the internal mame values.
c) have a setting for each
device axis to have mame translate the device's range to an internal mame range of -128 to 128 (default, same as currently), or 0 to 128 (a "real pedal" setting).
d) have a pedal setting that acts like normal (default), or translates the normal axis -128 to 128 range to a 0 to 128 range.
I've been thinking of adding b) to analog+ for a while, but some of the others might be easier. I'll look into them.