MAMEWorld >> Hardware
View all threads Index   Flat Mode Flat  

Bryan Ischo
MAME Fan
Reged: 03/28/10
Posts: 358
Send PM
Re: Not what you want but it's something..
05/22/12 02:13 AM


> 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.







Entire thread
Subject Posted by Posted on
* Controller mapping Bryan Ischo 05/16/12 02:46 AM
. * Not what you want but it's something.. Sune  05/20/12 04:24 AM
. * Re: Not what you want but it's something.. Bryan Ischo  05/22/12 02:13 AM
. * Re: Not what you want but it's something.. Sune  05/22/12 02:34 AM
. * Re: Not what you want but it's something.. Bryan Ischo  05/22/12 08:03 AM
. * Re: Not what you want but it's something.. Sune  05/22/12 08:43 PM
. * Re: Not what you want but it's something.. Bryan Ischo  05/22/12 10:00 PM
. * Re: Not what you want but it's something.. Sune  05/23/12 05:34 AM
. * Re: Not what you want but it's something.. R. Belmont  05/22/12 10:05 PM
. * Or, more simply..... mogli  05/22/12 10:53 PM
. * Re: Or, more simply..... Bryan Ischo  05/23/12 12:03 AM
. * Re: Or, more simply..... Sune  05/23/12 05:39 AM
. * Re: Or, more simply..... R. Belmont  05/23/12 04:42 PM
. * Re: Or, more simply..... Firehawke  05/23/12 04:59 PM
. * Re: Or, more simply..... mogli  05/23/12 08:32 PM
. * Re: Or, more simply..... Bryan Ischo  05/23/12 10:17 PM
. * Re: Or, more simply..... mogli  05/24/12 09:51 PM
. * Re: Or, more simply..... Bryan Ischo  05/25/12 03:58 AM

Extra information Permissions
Moderator:  GatKong 
0 registered and 6 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4169