Cleanup
This commit is contained in:
parent
bc4498b9dd
commit
33d9b08e39
|
@ -256,14 +256,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else if (ModifierState.TryGetValue(button, out LogicalButton buttonModifierState))
|
else if (ModifierState.TryGetValue(button, out LogicalButton buttonModifierState))
|
||||||
{
|
{
|
||||||
var ieModified = new InputEvent
|
if (buttonModifierState != ie.LogicalButton)
|
||||||
|
_NewEvents.Add(
|
||||||
|
new InputEvent
|
||||||
{
|
{
|
||||||
LogicalButton = buttonModifierState,
|
LogicalButton = buttonModifierState,
|
||||||
EventType = InputEventType.Release,
|
EventType = InputEventType.Release,
|
||||||
Source = source
|
Source = source
|
||||||
};
|
});
|
||||||
if (ieModified.LogicalButton != ie.LogicalButton)
|
|
||||||
_NewEvents.Add(ieModified);
|
|
||||||
ModifierState.Remove(button);
|
ModifierState.Remove(button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue