1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

make eventargs more generic so that this also works with the core version of monogame

This commit is contained in:
Ellpeck 2020-02-10 23:54:27 +01:00
parent 9366890aaa
commit 2e8e17b373

View file

@ -36,7 +36,7 @@ namespace MLEM.Extensions {
return true; return true;
} }
private void OnTextInput(object sender, EventArgs args) { private void OnTextInput(object sender, object args) {
if (key == null) if (key == null)
key = args.GetType().GetProperty("Key"); key = args.GetType().GetProperty("Key");
if (character == null) if (character == null)