Re: MAME Source looks like it already filters diagonals in 4-way games with nothing special required. Please read and comment...


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]

Posted by Just Michael on 19, 2000 at 1:55 AM:

In Reply to: MAME Source looks like it already filters diagonals in 4-way games with nothing special required. Please read and comment... posted by jeoff krontz on 18, 2000 at 2:29 PM:

: I was looking at the MAME source today.

: In INPTPORT.C, it looks like for ALL joystick types the program filters out opposite directions being pressed at the same time.

: For 4-WAY joystick games, it filters out diagonals. It looks like as long as you've got the joystick going one direction, it will not let any other direction occur. So, if you are pressing up and start moving to the up-right diagonal, it will still register up. Once you've gone completely to right, that will kick in.

: If this is the case, why does an 8-way joystick cause problems (control issues) in 4-way games? Can someone take a look and let me know if my analysis is incorrect?

: This would also seem to indicate that the previously mentioned control configuration of using NOTs is not necessary. For instance, configuring UP as (UP AND NOT LEFT AND NOT RIGHT) wouldn't really make a difference.

: What does a real 4-way joystick do when in a diagonal? Does it register NO direction at all just like if it was in the center position? If so, maybe this is the difference between the MAME implementation that causes problems. You could probably modify MAME to register a diagonal as "CENTER" for 4-way games.

The 4-way problems used to occur in the diagonals. I have tried PacMan with Mame 37b4 and the problem seems to be gone. It only uses the last direction you chose when you go diagonal.
Example:
Your going right and the push up-right and Mame stops registering right and registers up instead.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]