fix dumb mistake in bsnes gamepad controller

fixes 96cc3f8745
apparently this was only an issue in sgb?
This commit is contained in:
Morilli 2022-12-20 04:19:00 +01:00
parent aa0e2d6a5f
commit f668e09048
2 changed files with 4 additions and 1 deletions
Assets/dll
waterbox/bsnescore/bsnes/sfc/controller/gamepad

Binary file not shown.

View File

@ -7,7 +7,10 @@ Gamepad::Gamepad(uint port, bool isPayloadController) : Controller(port), isPayl
auto Gamepad::data() -> uint2 {
if(counter >= 16) return 1;
if(latched == 1) return platform->inputPoll(port, device, B);
if (counter >= 12 && !isPayload) return 0; //12-15: signature
if (counter >= 12 && !isPayload) {
counter++;
return 0; //12-15: signature
}
//note: D-pad physically prevents up+down and left+right from being pressed at the same time
// patched this "fix" out because it is handled in bizhawk frontend and fixing it here does not seem right anyway