mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Minor bugfixes in input resolution.
This commit is contained in:
parent
2794031d12
commit
6eaaaef995
@ -510,7 +510,7 @@ static int16_t netplay_input_state(netplay_t *netplay,
|
||||
|
||||
delta = &netplay->buffer[ptr];
|
||||
istate = delta->resolved_input[port];
|
||||
if (!istate)
|
||||
if (!istate || !istate->used)
|
||||
return 0;
|
||||
|
||||
curr_input_state = istate->data;
|
||||
|
@ -355,7 +355,6 @@ bool netplay_resolve_input(netplay_t *netplay, size_t sim_ptr, bool resim)
|
||||
(1U<<RETRO_DEVICE_ID_JOYPAD_DOWN) |
|
||||
(1U<<RETRO_DEVICE_ID_JOYPAD_LEFT) |
|
||||
(1U<<RETRO_DEVICE_ID_JOYPAD_RIGHT);
|
||||
uint32_t prev = simstate->data[0];
|
||||
simstate->data[0] &= keep;
|
||||
simstate->data[0] |= pstate->data[0] & ~keep;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user