> There is one thing I can think of with games that use analog controls that pop up
> here from time to time. It's easy to work around though.
> For games that use analog controls MAME provides mappable "analog inc" and "analog
> dec" for each available axis in the game, allowing you to map digital input devices
> to the game's analog controls, which of course is useful.
> But MAME has no way of knowing when your primary joystick is analog (ie most
> gamepads) so the default settings has both the inc and dec controls and the game's
> real analog axis mapped to your analog joystick at the same time.
> For trouble free playing with an analog joystick, normally you have to map the analog
> dec and inc controls to 'none' first.
Thanks for the info. I am not quite sure I totally understand though.
Does MAME have a built-in default for 'analog inc' and 'analog dec' for each available axis in the game? If so, what is the default? It sounds like you are somehow supplying both the input for whatever analog inc and analog dec are set to as well as the normal analog axis inputs.
E.g., it sounds like MAME has a default:
gamepad 0 button 1 -> analog joystick 1 horizontal axis inc
gamepad 0 button 2 -> analog joystick 1 horizontal axis dec
So that when you press the gamepad buttons you get unwanted increments or decrements of the analog joystick state.
Is that accurate?
FWIW, in my input system I supply the equivalent of "analog inc" and "analog dec" by default only for some obscure keyboard keys (F1 - F12 supplying analog inc and dec for various controllers). I wouldn't expect that to interfere with any normal controller that is mapped by the operating system to keyboard keys. These F1 - F12 mappings are just to assist developers and to give a very simple means for someone to try out a game. I would expect that anyone who intended to really play a game that uses analog controls would either set up a mapping that makes sense for that game (maybe mapping analog inc and analog dec manually to the keyboard), or, more likely, would get a real controller that supplies analog inputs and bypass analog inc and analog dec shenanigans completely.