Fix AppVeyor build.

This commit is contained in:
J.D. Purcell 2019-10-20 01:24:28 -04:00
parent b01f52c01b
commit a2215fb5df
1 changed files with 15 additions and 9 deletions

View File

@ -254,16 +254,22 @@ namespace BizHawk.Client.EmuHawk
{
ModifierState[button] = ie.LogicalButton;
}
else if (ModifierState.TryGetValue(button, out LogicalButton buttonModifierState))
else
{
if (buttonModifierState != ie.LogicalButton)
_NewEvents.Add(
new InputEvent
{
LogicalButton = buttonModifierState,
EventType = InputEventType.Release,
Source = source
});
LogicalButton buttonModifierState;
if (ModifierState.TryGetValue(button, out buttonModifierState))
{
if (buttonModifierState != ie.LogicalButton)
{
_NewEvents.Add(
new InputEvent
{
LogicalButton = buttonModifierState,
EventType = InputEventType.Release,
Source = source
});
}
}
ModifierState.Remove(button);
}