mirror of https://github.com/mgba-emu/mgba.git
GBA SIO: Only set up GBP driver if no other driver is loaded
This commit is contained in:
parent
1d584edb77
commit
39d90e5e44
|
@ -87,8 +87,9 @@ void GBASIOPlayerUpdate(struct GBA* gba) {
|
||||||
gba->sio.gbp.inputsPosted = 0;
|
gba->sio.gbp.inputsPosted = 0;
|
||||||
gba->sio.gbp.oldCallback = gba->keyCallback;
|
gba->sio.gbp.oldCallback = gba->keyCallback;
|
||||||
gba->keyCallback = &gba->sio.gbp.callback.d;
|
gba->keyCallback = &gba->sio.gbp.callback.d;
|
||||||
// TODO: Check if the SIO driver is actually used first
|
if (!gba->sio.driver) {
|
||||||
GBASIOSetDriver(&gba->sio, &gba->sio.gbp.d);
|
GBASIOSetDriver(&gba->sio, &gba->sio.gbp.d);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue