Main > Main Forum

4-way stick in software?

Pages: << < (5/6) > >>

RandyT:


--- Quote ---That's not sticky mode.

--- End quote ---

So what exactly is the difference between:

"while any direction is asserted, its adjacent diagonals are masked until the initial direction is released."

and

"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."

 :)

RandyT

u_rebelscum:


--- Quote from: RandyT on March 25, 2003, 07:38:28 am ---
--- Quote ---That's not sticky mode.
--- End quote ---

So what exactly is the difference between:

"while any direction is asserted, its adjacent diagonals are masked until the initial direction is released."

and

"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."
--- End quote ---

Ah, misunderstanding: His example he shows in the table doesn't match his summary.  I was going off the table, you were going off the summary.

His table is selective, sticky mode isn't.  A better summary sentence:
"While a direction is asserted, one of its adjacent diagonals is masked until the initial direction is released.  All directions masks are either clockwise or counter-clockwise from the direction."

But that's two sentences, and not as as summary. ;)



RandyT:


--- Quote from: u_rebelscum on March 25, 2003, 07:46:20 pm ---
--- Quote from: RandyT on March 25, 2003, 07:38:28 am ---
--- Quote ---That's not sticky mode.
--- End quote ---

So what exactly is the difference between:

"while any direction is asserted, its adjacent diagonals are masked until the initial direction is released."

and

"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."
--- End quote ---

Ah, misunderstanding: His example he shows in the table doesn't match his summary.  I was going off the table, you were going off the summary.

His table is selective, sticky mode isn't.  A better summary sentence:
"While a direction is asserted, one of its adjacent diagonals is masked until the initial direction is released.  All directions masks are either clockwise or counter-clockwise from the direction."

But that's two sentences, and not as as summary. ;)



--- End quote ---

Not trying to be nitpicky, but in seaner's defense, he called it out as a progression, not a table.  As a progression, it's pretty clear what he meant.

But no bigee :)

RandyT

u_rebelscum:


--- Quote from: RandyT on March 25, 2003, 08:12:32 pm ---Not trying to be nitpicky, but in seaner's defense, he called it out as a progression, not a table.  As a progression, it's pretty clear what he meant.
--- End quote ---

You right.  I thought it was a table for some reason.  :-[  
Maybe I thought that because I set up mame that way, and it works much better than either sticky keys or mame's current 4way; a little "twisted" (~23.5 degrees off vertical), but not too sensitive, not too slow. [hides head] ;)

Going to get me a restrictor plate for better play at some point, though.

seaner:

hehe.. not to flog a dead horse here, but the implementation is more along the lines of:

- 4 bits per nibble to represent a joystick
- if any 2 bits are asserted, mask off the new inputs and replace the 2 bits with the previous 2 bit value from that position:

or:

if ((newinput & 0x3)==0x3)
  newinput = (newinput & 0x3) | (oldinput & 0x3);
... repeat for mask of 0x6, 0xc, 0x9
oldinput = newinput;

I'm curious why u_rebelscum is having a problem with the alignment from center though.. off by 23.5 degrees?  Is this due to the fact that the levers on the microswitches extend at a slight angle from vertical or horizontal?  I've noticed a similar problem.. I may solve it by just giving the ends of the metal springs a minor bend.  This of course isn't a 4-way/8-way problem, it's a problem in general I've noticed with at least one of my x-arcade sticks.

Pages: << < (5/6) > >>

Go to full version