diff mediaplayer.h @ 2375:02c04196c2da

Fix mediaplayer play/pause handling
author Michael Pavone <pavone@retrodev.com>
date Fri, 17 Nov 2023 00:30:46 -0800
parents 97f164d1f0f6
children 1c09f5be285b
line wrap: on
line diff
--- a/mediaplayer.h	Wed Nov 15 23:23:52 2023 -0800
+++ b/mediaplayer.h	Fri Nov 17 00:30:46 2023 -0800
@@ -8,6 +8,7 @@
 #include "flac.h"
 #include "oscilloscope.h"
 #include "render_audio.h"
+#include "io.h"
 
 typedef struct chip_info chip_info;
 typedef void (*chip_run_fun)(void *context, uint32_t cycle);
@@ -48,6 +49,7 @@
 	uint8_t             state;
 	uint8_t             media_type;
 	uint8_t             should_return;
+	uint8_t             button_state[NUM_GAMEPAD_BUTTONS];
 } media_player;
 
 media_player *alloc_media_player(system_media *media, uint32_t opts);