mirror of https://github.com/mgba-emu/mgba.git
GB I/O: Improve accuracy of SGB MLT_REG polling (fixes #839)
This commit is contained in:
parent
48cf8448c1
commit
0883dc0815
|
@ -485,7 +485,7 @@ static uint8_t _readKeys(struct GB* gb) {
|
||||||
switch (gb->memory.io[REG_JOYP] & 0x30) {
|
switch (gb->memory.io[REG_JOYP] & 0x30) {
|
||||||
case 0x30:
|
case 0x30:
|
||||||
// TODO: Increment
|
// TODO: Increment
|
||||||
keys = gb->model == GB_MODEL_SGB ? 0xF : 0;
|
keys = (gb->video.sgbCommandHeader >> 3) == SGB_MLT_REG ? 0xF : 0;
|
||||||
break;
|
break;
|
||||||
case 0x20:
|
case 0x20:
|
||||||
keys >>= 4;
|
keys >>= 4;
|
||||||
|
|
Loading…
Reference in New Issue