diff options
author | Jean-André Santoni <jean.andre.santoni@gmail.com> | 2021-08-06 13:38:38 +0700 |
---|---|---|
committer | Jean-André Santoni <jean.andre.santoni@gmail.com> | 2021-08-10 12:59:57 +0700 |
commit | 0786858437ed71996f43b7af0fbe627eb88152fc (patch) | |
tree | a47228322292696605c279212667b97c3de4fabc | |
parent | bcac31eb2fa6bf66f6edd40164722efae9c78abc (diff) |
retro_input_poll should be called early
-rw-r--r-- | libblastem.c | 7 |
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 |