Proper handling of Left+Right/Up+Down?

EricICX
Posts: 1
Joined: Sat Jul 16, 2022 2:45 am

Proper handling of Left+Right/Up+Down?

Unread post by EricICX »

Almost every other NES emulator in existence, such as FCEUX, Nestopia, and Mesen, has an option for not allowing the illegal sets of inputs, Left+Right and Up+Down.

ex1.png
ex1.png (779 Bytes) Viewed 513 times
ex2.png
ex2.png (1.57 KiB) Viewed 513 times
ex3.png
ex3.png (2.59 KiB) Viewed 513 times

Currently, the absence of this feature makes it so that the MiSTer cannot be used to speedrun certain games, so it would be nice if this was implemented.
Nioreh
Posts: 9
Joined: Thu Apr 28, 2022 8:59 am
Has thanked: 2 times
Been thanked: 2 times

Re: Proper handling of Left+Right/Up+Down?

Unread post by Nioreh »

Original hardware alllows this, so why shouldn't mister? If speedrunning is allowed on original hardware it should be OK on mister too. At least if using original controllers via SNAC.
MostroW
Posts: 253
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 85 times
Been thanked: 33 times

Re: Proper handling of Left+Right/Up+Down?

Unread post by MostroW »

You could open a request here and hope that someone is willing to invest the time to add that logic to the core.

Or download the source, write the logic, compile and test, and maybe request they merge it?
User avatar
Kitrinx
Core Developer
Posts: 169
Joined: Sat May 23, 2020 2:14 am
Location: NYC
Has thanked: 1 time
Been thanked: 131 times
Contact:

Re: Proper handling of Left+Right/Up+Down?

Unread post by Kitrinx »

The core doesn't block any combination of buttons. It takes what the framework gives it and dutifully encodes it just like the real hardware.
zaffo256
Posts: 2
Joined: Thu Nov 18, 2021 7:41 am
Has thanked: 2 times

Re: Proper handling of Left+Right/Up+Down?

Unread post by zaffo256 »

I used to have a GBboy (clone) that didn't have a pivot on the dpad. It made Zelda unplayable because the game was glitching out whenever you pressed opposite direction at the same time by accident. Do this happens on mister with a controller that would allow this?
MostroW
Posts: 253
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 85 times
Been thanked: 33 times

Re: Proper handling of Left+Right/Up+Down?

Unread post by MostroW »

yes, the games that exhibit this behaviour have no input validation to see if any "impossible" key combination have been made. (most notably left+right or up+down)
User avatar
darksakul
Posts: 344
Joined: Mon May 25, 2020 4:34 pm
Has thanked: 391 times
Been thanked: 72 times

Re: Proper handling of Left+Right/Up+Down?

Unread post by darksakul »

Emulators allow for Simultaneous Opposing Cardinal Directions (or SOCD) filtering as it was a requested feature from the Fighting game community/ eSports players as SOCD can cause glitches or cheats (it was a huge issue with Marvel vs Capcom 3 that you can hit Right + Left and block even unlockable attacks). For arcade controllers, there are SOCD Filters for existing arcade hardware as well as 3rd party Arcade controller Encoders have functions for built in SOCD Filtering.

So far I yet to see an actual Console support this outside of physical controller limitations (D-pads pivots).
You can also trigger this issue with some games by hitting one direction on a D-pad and the opposite on the left analog thumbstick (like fighting games on the PlayStation and Xbox consoles).

SOCD Filtering also breaks a number of games, example Pop'n Music and Dance Dance Revolution series rely on SOCD to work.
It is my great regret that we live in an age that is proud of machines that think and suspicious of people who try to.
Post Reply