Merge pull request #15 from SergioMartin86/testFix

Test fix
This commit is contained in:
Sergio Martin 2024-01-27 21:15:45 +01:00 committed by GitHub
commit caf55de8c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,10 @@ public:
// Pushing input code into the port
port = code;
// Adding joypad signature
// Per https://www.nesdev.org/wiki/Standard_controller, the joypad reports 1s after the first 8 bits
port |= ~0xFF;
}
// If its fourscore, its like two joypads separated by a |