Should fix netplay for cores that use the new bitmask code

This commit is contained in:
twinaphex 2019-08-16 16:29:18 +02:00
parent f61602de59
commit 091c5f6092

View file

@ -602,6 +602,8 @@ static int16_t netplay_input_state(netplay_t *netplay,
switch (device)
{
case RETRO_DEVICE_JOYPAD:
if (id == RETRO_DEVICE_ID_JOYPAD_MASK)
return curr_input_state[0];
return ((1 << id) & curr_input_state[0]) ? 1 : 0;
case RETRO_DEVICE_ANALOG: