MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

AWJ
Reged: 03/08/05
Posts: 936
Loc: Ottawa, Ontario
Send PM
Re: Analog device reading is corrupt
08/28/11 06:27 PM


This is really a flaw in MAME's default settings. The problem occurs when you have the same device configured in MAME as both an analog and a digital input.

e.g.

Code:

AD Stick X Analog         Joy 1 A0
AD Stick X Analog Dec Joy 1 Left
AD Stick X Analog Inc Joy 1 Right



This mapping is wrong and will cause the real (analog) and simulated (digital) inputs to fight each other, exactly as described in the post you quoted. Unfortunately, this wrong mapping is also what MAME does by default.

The correct way to map analog inputs in MAME is to map either the "Analog" or the "Dec/Inc" inputs--not both--depending on whether the device you are using is analog or digital. If you have a real analog stick, you should only map it to "AD Stick Analog". If you are using a keyboard or (digital) gamepad, on the other hand, you should only map it to "AD Stick Analog Dec" and "AD Stick Analog Inc".

実物のアナログスティックをお使いの場合:

Code:

AD Stick X Analog         Joy 1 A0
AD Stick X Analog Dec None
AD Stick X Analog Inc None



キーボード、十字キー等をお使いの場合:

Code:

AD Stick X Analog             None
AD Stick X Analog Dec Joy 1 Left
AD Stick X Analog Inc Joy 1 Right



I guess the quoted poster's "fix" was wrong and that is why it wasn't included in mainline MAME (for one thing, he doesn't seem to realize that it is a problem with settings and not an actual bug in MAME)

Edited by AWJ (08/28/11 06:34 PM)







Entire thread
Subject Posted by Posted on
* Analog device reading is corrupt ShimaPong 08/28/11 05:49 PM
. * Re: Analog device reading is corrupt AWJ  08/28/11 06:27 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 328 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2788