summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-André Santoni <jean.andre.santoni@gmail.com>2021-08-06 13:38:38 +0700
committerJean-André Santoni <jean.andre.santoni@gmail.com>2021-08-10 12:59:57 +0700
commit0786858437ed71996f43b7af0fbe627eb88152fc (patch)
treea47228322292696605c279212667b97c3de4fabc
parentbcac31eb2fa6bf66f6edd40164722efae9c78abc (diff)
retro_input_poll should be called early
-rw-r--r--libblastem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libblastem.c b/libblastem.c
index f23d3e3..8b8a2a0 100644
--- a/libblastem.c
+++ b/libblastem.c
@@ -199,13 +199,14 @@ RETRO_API void retro_reset(void)
static uint8_t started;
RETRO_API void retro_run(void)
{
+ retro_input_poll();
if (started)
current_system->resume_context(current_system);
- else
- {
+ else
+ {
current_system->start_context(current_system, NULL);
started = 1;
- }
+ }
}
/* Returns the amount of data the implementation requires to serialize