Added Keybord input filter to only register first key press.
This commit is contained in:
@@ -161,7 +161,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