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,9 +87,10 @@ void GBASIOPlayerUpdate(struct GBA* gba) {
|
|||
gba->sio.gbp.inputsPosted = 0;
|
||||
gba->sio.gbp.oldCallback = gba->keyCallback;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t _gbpRead(struct mKeyCallback* callback) {
|
||||
|
|
Loading…
Reference in New Issue