mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
Properly pass through GBA GPIO writes
This commit is contained in:
@ -1297,6 +1297,7 @@ int OnAreaKeyEvent(uiAreaHandler* handler, uiArea* area, uiAreaKeyEvent* evt)
|
||||
if (GBACart::CartInserted && GBACart::HasSolarSensor)
|
||||
{
|
||||
if (GBACart_SolarSensor::LightLevel > 0) GBACart_SolarSensor::LightLevel--;
|
||||
printf("Solar sensor level set to %d\n", GBACart_SolarSensor::LightLevel);
|
||||
}
|
||||
}
|
||||
else if (evt->Scancode == 0x4D) // Keypad right
|
||||
@ -1304,6 +1305,7 @@ int OnAreaKeyEvent(uiAreaHandler* handler, uiArea* area, uiAreaKeyEvent* evt)
|
||||
if (GBACart::CartInserted && GBACart::HasSolarSensor)
|
||||
{
|
||||
if (GBACart_SolarSensor::LightLevel < 10) GBACart_SolarSensor::LightLevel++;
|
||||
printf("Solar sensor level set to %d\n", GBACart_SolarSensor::LightLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user