GB I/O: Improve accuracy of SGB MLT_REG polling (fixes #839)

This commit is contained in:
Vicki Pfau 2017-08-03 14:33:51 -07:00
parent 48cf8448c1
commit 0883dc0815
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ static uint8_t _readKeys(struct GB* gb) {
switch (gb->memory.io[REG_JOYP] & 0x30) {
case 0x30:
// TODO: Increment
keys = gb->model == GB_MODEL_SGB ? 0xF : 0;
keys = (gb->video.sgbCommandHeader >> 3) == SGB_MLT_REG ? 0xF : 0;
break;
case 0x20:
keys >>= 4;