Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Havok on June 02, 2010, 07:37:35 pm

Title: Z axis too sensitive on new version of Mame
Post by: Havok on June 02, 2010, 07:37:35 pm
I'm updating my cab with a Windows 7 64bit build, so I decided to update Mame as well. I am enjoying the speed boost of 64bit, however with the newer version of Mame (.137) I don't see the old option of changing the input.c file to divide the z-axis input by 4 instead of 512 before I compile. It appears to just take raw input now. So now I have a super sensitive spinner, which is hooked up to my Z axis. How are we supposed to change the input setting for the Z axis now? Analog sensitivity? Or perhaps a Windows hack?
Title: Re: Z axis too sensitive on new version of Mame
Post by: headkaze on June 03, 2010, 09:05:09 am
Perhaps you need to calibrate it? Also check out DXTweak 2 (http://www.wingmanteam.com/latest_software/gadgets.htm) although I'm not sure if it will work in Win7.
Title: Re: Z axis too sensitive on new version of Mame
Post by: syph007 on June 03, 2010, 08:11:53 pm
The last time I did the code change to input.c was for ver 0.133 and it was where I expected it.  I wonder what version it changed in then.  It was quite unusable without the code change.

Perhaps urebelscum will chime in, he usually has the answers.
Title: Re: Z axis too sensitive on new version of Mame
Post by: Havok on June 04, 2010, 04:58:32 pm
Whoops - realized my mistake; I was going off older instructions that I saved to my Mame folder. U_rebelscum's instructions still work with the newer versions of Mame:

Change

devinfo->mouse.raw_z += (INT16)data->usButtonData * INPUT_RELATIVE_PER_PIXEL;

to:

devinfo->mouse.raw_z += (INT)((INT16)data->usButtonData * 4.267);

Whew!