From fb56639526a5a205d8cde98b34512c2174eb46e0 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 4 Apr 2009 10:21:35 +0000 Subject: [PATCH] Handle joystick updates on the host as well --- Src/C64_SDL.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Src/C64_SDL.h b/Src/C64_SDL.h index ed80020..0c9f42e 100644 --- a/Src/C64_SDL.h +++ b/Src/C64_SDL.h @@ -699,6 +699,16 @@ void C64::VBlank(bool draw_frame) else TheCIA1->Joystick1 = j2; } + else if (this->network_connection_type == CLIENT) + { + Uint8 which = j2; + + /* Set both joysticks to the updated value */ + if (j2 != 0xff) + which = j2; + TheCIA1->Joystick1 = which; + TheCIA1->Joystick2 = which; + } else { TheCIA1->Joystick1 = j1;