mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
C89 buildfix and other small cleanup
This commit is contained in:
parent
975d613fbb
commit
426ba5382c
@ -1826,13 +1826,21 @@ static bool input_overlay_add_inputs_inner(overlay_desc_t *desc,
|
|||||||
return (desc->updated != 0);
|
return (desc->updated != 0);
|
||||||
|
|
||||||
case OVERLAY_TYPE_KEYBOARD:
|
case OVERLAY_TYPE_KEYBOARD:
|
||||||
bool tmp = OVERLAY_GET_KEY(ol_state, desc->retro_key_idx) ? true : false;
|
|
||||||
if ( ol_state
|
|
||||||
? tmp
|
|
||||||
: input_state_internal(port, RETRO_DEVICE_KEYBOARD, 0, desc->retro_key_idx))
|
|
||||||
{
|
{
|
||||||
desc->updated = 1;
|
bool tmp = false;
|
||||||
return true;
|
if (ol_state)
|
||||||
|
{
|
||||||
|
if (OVERLAY_GET_KEY(ol_state, desc->retro_key_idx))
|
||||||
|
tmp = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
tmp = input_state_internal(port, RETRO_DEVICE_KEYBOARD, 0, desc->retro_key_idx);
|
||||||
|
|
||||||
|
if (tmp)
|
||||||
|
{
|
||||||
|
desc->updated = 1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user