MonoGame.Extended icon indicating copy to clipboard operation
MonoGame.Extended copied to clipboard

Decrease allocation overhead on KeyboardStateExtended

Open LilithSilver opened this issue 2 years ago • 0 comments

WasAnyKeyJustDown() called a MonoGame method that allocated, when a better one was available.

Additionally, GetPressedKeys(Keys[] keys) overload to allow the caller to cache was present on KeyboardState, but missing on KeyboardStateExtended.

Fixed both things.

LilithSilver avatar Oct 11 '23 09:10 LilithSilver