fix reset menu item?

This commit is contained in:
zeromus 2011-08-04 02:47:05 +00:00
parent 933b4a60bc
commit ae3b4fad83
1 changed files with 6 additions and 1 deletions

View File

@ -37,10 +37,12 @@ namespace BizHawk.MultiClient
}
/// <summary>
/// uses the bindings to latch our own logical button state from the source controller's button state (which are assumed to be the physical side of the binding)
/// uses the bindings to latch our own logical button state from the source controller's button state (which are assumed to be the physical side of the binding).
/// this will clobber any existing data (use OR_* or other functions to layer in additional input sources)
/// </summary>
public void LatchFromPhysical(IController controller)
{
buttons.Clear();
foreach (var kvp in bindings)
{
buttons[kvp.Key] = false;
@ -61,7 +63,10 @@ namespace BizHawk.MultiClient
foreach (string button in type.BoolButtons)
{
if (controller.IsPressed(button))
{
buttons[button] = true;
Console.WriteLine(button);
}
}
}