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 Danny Reinig on 18, 2000 at 2:59 PM:

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.


hmm but a lot of us have our controls hooked through the keyboard. does this also filter out the diagonials for the keyboard?


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 ]