Handle joystick updates on the host as well

This commit is contained in:
simon.kagstrom 2009-04-04 10:21:35 +00:00
parent 9e3f75c4f4
commit fb56639526

View File

@ -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;