From f17080091b80db9b4a6239ac0651de2cb132b647 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 24 Oct 2016 07:06:59 +0200 Subject: [PATCH] Simplify input_keyboard_event --- input/input_keyboard.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/input/input_keyboard.c b/input/input_keyboard.c index 63315e673e..83873543c7 100644 --- a/input/input_keyboard.c +++ b/input/input_keyboard.c @@ -223,10 +223,9 @@ void input_keyboard_event(bool down, unsigned code, switch (device) { case RETRO_DEVICE_POINTER: - if (!input_keyboard_line_event(g_keyboard_line, - (code != 0x12d) ? (char)code : character)) - return; - break; + if (code != 0x12d) + character = (char)code; + /* fall-through */ default: if (!input_keyboard_line_event(g_keyboard_line, character)) return;