Taking back changes on controllers as joypad do report 1s after the first 8 bits as per https://www.nesdev.org/wiki/Standard_controller

This commit is contained in:
Sergio Martin 2024-01-27 21:13:36 +01:00
parent 1b8017fd09
commit 5d047f3904
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 |