mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 07:39:56 -06:00
Implement solar sensor processing
This commit is contained in:
@ -43,6 +43,14 @@ void Write32(u32 addr, u32 val);
|
||||
namespace GBACart
|
||||
{
|
||||
|
||||
struct GPIO
|
||||
{
|
||||
bool has_solar_sensor;
|
||||
u16 data;
|
||||
u16 direction;
|
||||
u16 control;
|
||||
};
|
||||
|
||||
extern bool CartInserted;
|
||||
extern u8* CartROM;
|
||||
extern u32 CartROMSize;
|
||||
@ -59,4 +67,15 @@ void WriteGPIO(u32 addr, u16 val);
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace GBACart_SolarSensor
|
||||
{
|
||||
|
||||
extern u8 LightLevel;
|
||||
|
||||
void Reset();
|
||||
void Process(GBACart::GPIO* gpio);
|
||||
|
||||
}
|
||||
|
||||
#endif // GBACART_H
|
||||
|
Reference in New Issue
Block a user