craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.44k stars 325 forks source link

Improve naming of WasKeyJustDown/Up and WasButtonJustDown/Up #815

Closed LilithSilver closed 7 months ago

LilithSilver commented 1 year ago

Fixes #760

Deprecates MouseStateExtended.WasButtonJustDown, MouseStateExtended.WasButtonJustUp, KeyboardStateExtended.WasKeyJustDown, KeyboardStateExtended.WasKeyJustUp, and adds documentation to prevent confusion.

Adds MouseStateExtended.IsButtonPressed, MouseStateExtended.IsButtonReleased, KeyboardStateExtended.IsKeyPressed, KeyboardStateExtended.IsKeyReleased as replacements. Those were my thoughts for the naming of the API, but if reviewers have other suggestions, feel free to suggest.