Main > Main Forum
4-way stick in software?
skirge66:
just curious, why electronicly? it seems that a cool way to go would be by using restrictor plates from oscar controls, it looks like you could tap 4 mounting holes around the 8 way stick and get yourself a 4way diaganal, straight 4way, and a 2 way restrictor (place it vertical or horizontal). it sounds like they can be removed and switched out if you do it right, please correct me if i'm wrong.
Wade:
You might also consider some of the switchable sticks from Ultimarc. After using the ball top J-sticks in 4-way for a couple of days I'm pretty happy with them.
I noticed when watching the joysticks from underneath in 4-way mode, when going from one direction to another, the "click" of one microswitch opening is almost perfectly timed with the other switch closing. Most of the time it sounds like one click, even when moving from one direction to another slowly. This makes me think the restrictors on the bottom are working as they are supposed to.
We have been playing 4-way games almost exclusively and I haven't experienced any of the "stuck in a diagonal" stuff that some people mention. Granted, it has only been a couple of days, but my initial concerns about the whole 4/8 way issue have been put to rest.
Wade
seaner:
Oh, I decided to do up a firmware solution because that costs me nothing but an hour of work, and it works perfectly for me. I didn't want a solution that would require me to open up the control panel and fiddle around inside, unless a restrictor plate is something that goes on the outside of the panel.
u_rebelscum:
--- Quote from: RandyT on March 23, 2003, 12:49:26 am ---
--- Quote from: seaner on March 22, 2003, 08:35:32 pm ---Perhaps I didn't phrase it well enough... see the following progression for what I did. (this may or may not be how mame does it in s/w)
stick reported
------ ------------
east east
northeast east
north north
northwest north
west west
....
it's just selective masking. while any direction is asserted, its adjacent diagonals are masked until the initial direction is released.
--- End quote ---
You have just described the "old" sticky mode according to the latest source.
--- End quote ---
That's not sticky mode. Mame sticky mode way was: if push N, mame keeps sending North until N is not pressed. So, pressing N then NW or NE is still N, and W then NW is still W.
To set up inputs as mentioned above in mame, you have to remember to put the nots ("!" in ctrlr/ini files), and recompile the stick as 8way.
So you'd want a ctrlr/ini file with something like
P1_JOYSTICK_UP "KEYCODE_UP ! KEYCODE_RIGHT"
P1_JOYSTICK_DOWN "KEYCODE_DOWN ! KEYCODE_LEFT"
P1_JOYSTICK_LEFT "KEYCODE_LEFT ! KEYCODE_UP"
P1_JOYSTICK_RIGHT "KEYCODE_RIGHT ! KEYCODE_DOWN"
Notice the "!" instead of "|".
skirge66:
--- Quote from: seaner on March 24, 2003, 09:34:42 pm ---Oh, I decided to do up a firmware solution because that costs me nothing but an hour of work, and it works perfectly for me. I didn't want a solution that would require me to open up the control panel and fiddle around inside, unless a restrictor plate is something that goes on the outside of the panel.
--- End quote ---
unless i am wrong as i occasionaly am ::)...i beleive a restrictor plate can be installed external to the control panel... take a look at supercade, right below the bezel in his pic i beleive those are his 4way and dagonal restrictor plates that are removed.