Merge pull request #9791 from RichSuther/upstream/fix-keyboard-filter
Added Keyboard input filter to only register first key press.
This commit is contained in:
@@ -162,7 +162,11 @@ namespace OpenRA.Platforms.Default
|
|||||||
Platform.CurrentPlatform == PlatformType.Windows)
|
Platform.CurrentPlatform == PlatformType.Windows)
|
||||||
Game.Exit();
|
Game.Exit();
|
||||||
else
|
else
|
||||||
inputHandler.OnKeyInput(keyEvent);
|
{
|
||||||
|
// Only register initial key press
|
||||||
|
if (e.key.repeat == 0)
|
||||||
|
inputHandler.OnKeyInput(keyEvent);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user