Simplify input_keyboard_event

This commit is contained in:
twinaphex 2016-10-24 07:06:59 +02:00
parent 5ea2078638
commit f17080091b

View File

@ -223,10 +223,9 @@ void input_keyboard_event(bool down, unsigned code,
switch (device) switch (device)
{ {
case RETRO_DEVICE_POINTER: case RETRO_DEVICE_POINTER:
if (!input_keyboard_line_event(g_keyboard_line, if (code != 0x12d)
(code != 0x12d) ? (char)code : character)) character = (char)code;
return; /* fall-through */
break;
default: default:
if (!input_keyboard_line_event(g_keyboard_line, character)) if (!input_keyboard_line_event(g_keyboard_line, character))
return; return;