Main > Main Forum

Emulating a 4-way joystick

(1/2) > >>

JZSlenker:
I know I know, lots of people have already talked about this but I have one more question.  I am fully aware that I can (or could) have put a third joystick in that is an actual 4-way joystick, or I could change the restrictor, or I could buy ultimarcs joystick.  At this point I'm not going to do either of those things.  My question is....   Somewhere I had read the following for a way to make 8-way sticks behave better on 4-way games. 

... map your inputs as such
ultimately:
UP = UP NOT UP/LEFT NOT UP/RIGHT
DOWN = DOWN NOT DOWN/LEFT NOT DOWN/RIGHT

etc.
the end result, the game only accepts the "pure" four directions.
if you push diagonal, you get no response.


Now what I did was to map things as follows
UP=UP not LEFT or UP not RIGHT
DOWN = DOWN not LEFT or DOWN not RIGHT
etc etc

This DOES make a marked difference in controllability.!  Would it be better to map it as the post suggests using the same time wording, or is the way I've done it better?

Thanks

u_rebelscum:

--- Quote from: JZSlenker on February 18, 2010, 07:17:37 am ---...Now what I did was to map things as follows
UP=UP not LEFT or UP not RIGHT
DOWN = DOWN not LEFT or DOWN not RIGHT
etc etc

This DOES make a marked difference in controllability.!  Would it be better to map it as the post suggests using the same time wording, or is the way I've done it better?

--- End quote ---

It makes a difference? ???

What are the differences?  Are you using a keyboard encoder, or a gamepad encoder? (Mame does extra stuff with gamepad encoders.)  What game(s) have you tested? (Games handle diagonals differently.)


Logically, what you have is the same as Up = Up. 
Why: Your map is Up = (Up not Left) or (Up not Right).  If you press up-left, mame looks at the map and checks if it is (Up not Left); it fails this one, so mame checks the next part.  Is Up-Left (Up not right)? Yup it is, so mame accepts Up-Left as Up.  Mirror for Up-right, etc. 
The only difference I can see between your map and the simplified Up=Up is that mame has to do some more logical steps sometimes.

If you want to have diagonals ignored, it should be mapped:
Up = Up not Left not Right.
Down = Down not Left not Right
etc

If you mapped exactly as you guoted, no directions would work, I think.

JZSlenker:
You are right, mapped as quoted nothing works.  UP=UP NOT LEFT NOT RIGHT works great.  I'm using an I-Pac and testing on games like Donkey Kong, and MsPacman

Thanks for the reply.

ark_ader:
I think it would be more challenging for a game like pacman just to have four push buttons instead of a joystick.

JZSlenker:
So for a game like pacman to disable diagonals for both joysticks I can do...

UP=UP OR R NOT LEFT NOT RIGHT NOT D NOT G
LEFT=LEFT OR D NOT UP NOT DOWN NOT R NOT F
etc etc

Navigation

[0] Message Index

[#] Next page

Go to full version