N64: Fix input display on the virtual pad
This commit is contained in:
parent
70de80b262
commit
ef36677168
|
@ -295,10 +295,10 @@ namespace BizHawk.MultiClient
|
|||
case "C64":
|
||||
break;
|
||||
case "N64":
|
||||
Pads[0].SetButtons(str.Substring(3, 20));
|
||||
Pads[1].SetButtons(str.Substring(24, 20));
|
||||
Pads[2].SetButtons(str.Substring(45, 20));
|
||||
Pads[3].SetButtons(str.Substring(66, 20));
|
||||
Pads[0].SetButtons(str.Substring(3, 23));
|
||||
Pads[1].SetButtons(str.Substring(27, 23));
|
||||
Pads[2].SetButtons(str.Substring(51, 23));
|
||||
Pads[3].SetButtons(str.Substring(75, 23));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,16 +112,16 @@ namespace BizHawk.MultiClient
|
|||
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
if (InputValidate.IsValidUnsignedNumber(buttons.Substring(14, 3)))
|
||||
if (InputValidate.IsValidSignedNumber(buttons.Substring(14, 4)))
|
||||
{
|
||||
x = Int32.Parse(buttons.Substring(14, 3)) - 128;
|
||||
x = Int32.Parse(buttons.Substring(14, 4));
|
||||
|
||||
}
|
||||
if (InputValidate.IsValidUnsignedNumber(buttons.Substring(17, 3)))
|
||||
if (InputValidate.IsValidSignedNumber(buttons.Substring(19, 4)))
|
||||
{
|
||||
y = Int32.Parse(buttons.Substring(17, 3)) - 128;
|
||||
y = Int32.Parse(buttons.Substring(19, 4));
|
||||
}
|
||||
AnalogControl1.SetPosition(x, y);
|
||||
set_analog(x, y);
|
||||
}
|
||||
|
||||
public string GetMnemonic()
|
||||
|
|
Loading…
Reference in New Issue