MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4465
Loc: Melbourne, Australia
Send PM
Re: MAME Config - input changes
05/01/23 08:53 PM


That’s only true for an Xbox style dual analog pad though. An Xinput fight pad has different tokens, as does an Xinput guitar controller, or whatever.

The de facto standard for dual analog DirectInput controllers (e.g. Logitech gamepads and PlayStation adapters) is to make the left thumb stick X/Y and the right thumb stick Z/Rz. The newer PlayStation pads with analog triggers extend that by making the left trigger Rx and the right trigger Ry. Xinput dual analog pads in MAME now follow the convention for the thumb sticks.

When Microsoft added support for Xbox pads in Windows, they went out of their way to ensure that it wouldn’t work well with existing software via DirectInput. They made the right thumb stick Rx/Ry and combined the triggers into a single Z axis, as well as making it impossible to use vibration features via the DirectInput API. For whatever reason, Nintendo Switch controllers also se Rx/Ry for the right thumb stick, but they don’t have analog triggers.

Blame Microsoft for going out of their way to make Xbox pads work poorly with DirectInput to try and push developers to use the Xinput API (and hence only support Xbox-style peripherals), and blame Brad Hughes for doing a shoddy job of Xinput support in MAME in the first place.







Entire thread
Subject Posted by Posted on
* MAME Config - input changes midget35 05/01/23 01:56 PM
. * Re: MAME Config - input changes Vas Crabb  05/01/23 04:20 PM
. * Re: MAME Config - input changes midget35  05/01/23 05:13 PM
. * Re: MAME Config - input changes Vas Crabb  05/01/23 05:26 PM
. * Re: MAME Config - input changes midget35  05/01/23 05:37 PM
. * Re: MAME Config - input changes Vas Crabb  05/01/23 07:48 PM
. * Re: MAME Config - input changes midget35  05/01/23 08:04 PM
. * Re: MAME Config - input changes Vas Crabb  05/01/23 08:53 PM
. * Re: MAME Config - input changes midget35  05/01/23 09:06 PM
. * Re: MAME Config - input changes RobbbertModerator  05/01/23 03:28 PM
. * Re: MAME Config - input changes midget35  05/01/23 03:44 PM
. * Re: MAME Config - input changes RobbbertModerator  05/01/23 04:12 PM

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