N64 Virtualpad - make clear button also clear the analog control

This commit is contained in:
adelikat 2014-06-01 19:51:35 +00:00
parent d4c0c64402
commit f02448b769
2 changed files with 7 additions and 2 deletions

View File

@ -164,10 +164,11 @@ namespace BizHawk.Client.EmuHawk
}
void Clear()
public void Clear()
{
X = Y = 0;
HasValue = false;
Refresh();
}
public void SetPosition(int xval, int yval)

View File

@ -69,11 +69,15 @@ namespace BizHawk.Client.EmuHawk
public void Clear()
{
if (Global.Emulator.SystemId != "N64") return;
if (Global.Emulator.SystemId != "N64")
{
return;
}
foreach (var button in Buttons)
{
button.Clear();
AnalogControl1.Clear();
}
}