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:
parent
1b8017fd09
commit
5d047f3904
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue