From 3de1e585922618f26138f86ec0978884bccfbef7 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sat, 23 Jan 2016 15:32:15 +0100 Subject: [PATCH] (Imageviewer) React only to freshly pressed inputs. --- cores/libretro-imageviewer/image_core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cores/libretro-imageviewer/image_core.c b/cores/libretro-imageviewer/image_core.c index 3976f85e5c..cebd96dedf 100644 --- a/cores/libretro-imageviewer/image_core.c +++ b/cores/libretro-imageviewer/image_core.c @@ -298,6 +298,7 @@ void IMAGE_CORE_PREFIX(retro_run)(void) static int image_index = 0; uint16_t input = 0; static uint16_t previnput; + uint16_t realinput = 0; int i; IMAGE_CORE_PREFIX(input_poll_cb)(); @@ -312,9 +313,12 @@ void IMAGE_CORE_PREFIX(retro_run)(void) { if (IMAGE_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, i)) { - input |= 1<size - 1))