libretro / FBNeo

FBNeo - We are Team FBNeo.
https://neo-source.com
Other
228 stars 136 forks source link

Optimize the input problem of neogeo when using the keyboard #1062

Closed crashGG closed 10 months ago

crashGG commented 10 months ago

When the arcade stick input switches in two opposite directions, there is a "empty" in the middle, but when the emulator uses the keyboard to switch in two opposite directions, the switch is often instantaneous. For example, when switching left and right on an arcade joystick, the actual input is left->empty->right. That is to say, there will be an empty direction when switching to the opposite direction! But when using keyboard input, the actual input is left->right, or left->left+right->right

The problem I discovered is that some game developers deliberately added matching for the empty direction input when checking command inputs. For example, kof98 rugby charactor's 24A, 246A, 222B, 28A/C. For the last 28A/C , I found that the actual command is 2N8+A/C, that is, a total of 3 directions of detection: down, empty, up, and A/C! Once the empty direction is not detected, this command will fail, which is why it is difficult for most players to use the keyboard to do this trick!

In addition, this modification can also perform some skills that can only be done by Hitbox, that is, pressing the opposite direction at the same time while charging can release the charging skill. Greatly convenient for keyboard players

This modification refers to the code of gsc2007 and pays tribute to him.