MAMEWorld >> Hardware
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Tron1001
MAME Fan
Reged: 04/21/07
Posts: 8
Send PM
Re: Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads
04/05/13 12:51 AM


I am glad you understand, and I would be happy to explain what I think I know to be true.

I think we agree that MAME is versatile enough to accommodate analog and digital devices to be mapped to any kind of game input, with varying degrees of successful control based on how well the two match up. However, in order for a 2-axis analog device to be mapped to a digital input for a game, I surmise that its field must be discretized. From using HeadKaze's joystick mapping utility, I gather that the field of a 2-axis device is split up into a 9x9 grid, or 81 distinct combinations of voltage values for the field defined by the two axes. Without a customized mapping, the first 3x3 group (NW) would be devoted to NW movement, the next 3x3 group to due north, and so on, with the middle center group defined as a deadzone. The logic of course being that if the voltage values of the input device fall within the bounds of one of those 9 blocks in one of the 3x3 groups, only the command associated with that group will be delivered to the game. With a customized mapping, however, some or all of those 9 blocks in a 3x3 group can be assigned to a different direction. So in the case that I present, only the very first block of the first 3x3 group (top leftmost) would be assigned to NW, 3 blocks to N, 3 blocks to W, and the remaining two blocks down the diagonal of that group to "sticky". [1+3+3+2=9] The values that you see in the ini line I posted is a row-wise serialized encoding of the matrixed sensitivity map for that 9x9 grid. Each of the different numbers is associated with one of the 8 directions. An s indicates a "sticky" value, which I suppose has some logic tied to it for four-way games.

Edited by Tron1001 (04/05/13 01:33 AM)







Entire thread
Subject Posted by Posted on
* Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads Tron1001 04/03/13 01:25 AM
. * Re: Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads Sune  04/03/13 05:42 AM
. * Re: Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads Tron1001  04/03/13 03:08 PM
. * Re: Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads Sune  04/03/13 09:13 PM
. * Re: Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads Tron1001  04/04/13 04:59 PM
. * Re: Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads Sune  04/04/13 09:16 PM
. * Re: Request for Right Hand Thumbstick Joy-Mapping Support on Dual Shock Type PC Game Pads Tron1001  04/05/13 12:51 AM

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