Adding read function for joy read count
This commit is contained in:
parent
c790c0df18
commit
5170f5e983
|
@ -44,6 +44,8 @@ class Emu
|
||||||
|
|
||||||
const uint8_t *getHostPixels() const { return emu.ppu.host_pixels; }
|
const uint8_t *getHostPixels() const { return emu.ppu.host_pixels; }
|
||||||
|
|
||||||
|
int get_joypad_read_count() const { return emu.joypad_read_count; }
|
||||||
|
|
||||||
// Save emulator state variants
|
// Save emulator state variants
|
||||||
void serializeState(jaffarCommon::serializer::Base& serializer) const { emu.serializeState(serializer); }
|
void serializeState(jaffarCommon::serializer::Base& serializer) const { emu.serializeState(serializer); }
|
||||||
void deserializeState(jaffarCommon::deserializer::Base& deserializer) { emu.deserializeState(deserializer); }
|
void deserializeState(jaffarCommon::deserializer::Base& deserializer) { emu.deserializeState(deserializer); }
|
||||||
|
@ -68,7 +70,6 @@ class Emu
|
||||||
{
|
{
|
||||||
static const uint8_t left = 8;
|
static const uint8_t left = 8;
|
||||||
|
|
||||||
int joypad_read_count; // number of times joypads were strobed (read)
|
|
||||||
int burst_phase; // NTSC burst phase for frame (0, 1, or 2)
|
int burst_phase; // NTSC burst phase for frame (0, 1, or 2)
|
||||||
|
|
||||||
int sample_count; // number of samples (always a multiple of chan_count)
|
int sample_count; // number of samples (always a multiple of chan_count)
|
||||||
|
|
Loading…
Reference in New Issue