From 5170f5e983dd8c75e58cbee78538ae2d5c1fb409 Mon Sep 17 00:00:00 2001 From: SergioMartin86 Date: Mon, 26 Feb 2024 18:50:38 +0000 Subject: [PATCH] Adding read function for joy read count --- source/quickerNES/core/emu.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/quickerNES/core/emu.hpp b/source/quickerNES/core/emu.hpp index b11c655..fa914a3 100644 --- a/source/quickerNES/core/emu.hpp +++ b/source/quickerNES/core/emu.hpp @@ -44,6 +44,8 @@ class Emu 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 void serializeState(jaffarCommon::serializer::Base& serializer) const { emu.serializeState(serializer); } void deserializeState(jaffarCommon::deserializer::Base& deserializer) { emu.deserializeState(deserializer); } @@ -68,7 +70,6 @@ class Emu { 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 sample_count; // number of samples (always a multiple of chan_count)