This is why it is important to declare which platform you are using.
Mouse.GetState() in MonoGame.Framework.Windows does not generate
garbage. Mouse.GetState() in MonoGame.Framework.DesktopGL does generate
Great arrg, Im using the cross platform one so ya basically the desktopGL on windows i guess, i should of said that..
Ya its creating garbage i add it and see it make garbage, remove it and it stops the real problem is i can't get that garbage to stop being collected or reuse it.
Keyboard does it too when a key is actually pressed, but i haven't isolated the call from my keyboard class to test that its not just my calls. I can live with garbage only when i press a key even if it is. The mouse is just doing it having that call in there which is constant.
So the dx version doesn't generate garbage then ?
Seems odd that a call like this would generate garbage anyways unless somethings getting boxed that shouldn't be.
Is there a work around other then switching to DX to prevent GetState on GL from creating garbage and collecting it ?