2015-11-14 00:52:51 +00:00
|
|
|
auto lcdScanline() -> void;
|
|
|
|
auto lcdOutput(uint2 color) -> void;
|
|
|
|
auto joypWrite(bool p15, bool p14) -> void;
|
Update to v088r08 release.
byuu says:
From this WIP, I'm starting on the impossible task of
a declarative-based GUI, which I'm calling Ethos.
base/ becomes emulator/, and we add emulator/interface.hpp, which is
a base API that all emulation cores must implement in full.
(Right now, it's kind of a hybrid to work with the old GUI and the new
GUI at the same time, of course.)
Unlike the old interfaces, the new base class also provides all general
usability hooks: loading and saving files and states, cheat codes, etc.
The new interface also contains information and vector structs to
describe all possible loading methods, controller bindings, etc; and
gives names for them all.
The actual GUI in fact should not include eg <gba/gba.hpp> anymore.
Should speed up GUI compilation.
So the idea going forward is that ethos will build a list of emulators
right when the application starts up.
Once you've appended an emulator to that list, you're done. No more GUI
changes are needed to support that system.
The GUI will have code to parse the emulator interfaces list, and build
all the requisite GUI options dynamically, declarative style.
Ultimately, once the project is finished, the new GUI should look ~99%
identical to the current GUI. But it'll probably be a whole lot smaller.
2012-04-29 06:29:54 +00:00
|
|
|
|
2015-11-14 00:52:51 +00:00
|
|
|
auto videoColor(uint source, uint16 red, uint16 green, uint16 blue) -> uint32;
|
|
|
|
auto videoRefresh(const uint32* data, uint pitch, uint width, uint height) -> void;
|
|
|
|
auto audioSample(int16 lsample, int16 rsample) -> void;
|
|
|
|
auto inputPoll(uint port, uint device, uint id) -> int16;
|
2011-01-08 09:58:41 +00:00
|
|
|
|
|
|
|
struct Packet {
|
2015-11-14 00:52:51 +00:00
|
|
|
auto operator[](uint addr) -> uint8& { return data[addr & 15]; }
|
2011-01-08 09:58:41 +00:00
|
|
|
uint8 data[16];
|
|
|
|
};
|
|
|
|
Packet packet[64];
|
2015-11-14 00:52:51 +00:00
|
|
|
uint packetsize;
|
2011-01-08 09:58:41 +00:00
|
|
|
|
2015-11-14 00:52:51 +00:00
|
|
|
uint joyp_id;
|
2011-01-08 09:58:41 +00:00
|
|
|
bool joyp15lock;
|
|
|
|
bool joyp14lock;
|
|
|
|
bool pulselock;
|
|
|
|
bool strobelock;
|
|
|
|
bool packetlock;
|
|
|
|
Packet joyp_packet;
|
|
|
|
uint8 packetoffset;
|
|
|
|
uint8 bitdata, bitoffset;
|