From 984f763d75e1c480466988d1a2c967802b41f33e Mon Sep 17 00:00:00 2001 From: Gregor Richards Date: Thu, 14 Sep 2017 19:48:47 -0400 Subject: [PATCH] Only do our careful resimulation with joypads --- network/netplay/netplay_sync.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/network/netplay/netplay_sync.c b/network/netplay/netplay_sync.c index 336cc967c8..a40404f646 100644 --- a/network/netplay/netplay_sync.c +++ b/network/netplay/netplay_sync.c @@ -350,7 +350,7 @@ bool netplay_resolve_input(netplay_t *netplay, size_t sim_ptr, bool resim) if (!pstate) continue; - if (resim) + if (resim && (dtype == RETRO_DEVICE_JOYPAD || dtype == RETRO_DEVICE_ANALOG)) { /* In resimulation mode, we only copy the buttons. The reason for this * is nonobvious: @@ -367,21 +367,11 @@ bool netplay_resolve_input(netplay_t *netplay, size_t sim_ptr, bool resim) * which will seem to jerkily be pressed numerous times with those * wavefronts. */ - const uint32_t keep_joypad = + const uint32_t keep = (1U<data[0] &= keep; simstate->data[0] |= pstate->data[0] & ~keep; }