Im having some problems when running my application at fullscreen.
My game is currently running at 800x600 resolution. When im in windowed mode my mouse pos x and y is 0.0 upper left corner and 800.600 bottom right.
If im running my game in fullscreen its still 0.0 in upper left corner but at bottom right it changes to 1920x1080.
My mouse then follows the resolution of my screen and not the applications resolution.
Is there a way to fix this, maybe a workaround or something like that?
Here are my constructor for Game1.cs and Initialize
public Game1()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
Window.IsBorderless = true;
graphics.PreferredBackBufferWidth = screenWidth;
graphics.PreferredBackBufferHeight = screenHeight;
graphics.IsFullScreen = true;
}
protected override void Initialize()
{
Mouse.SetPosition(0, 0);
IsMouseVisible = true;
currentGameState = GameState.MainMenu;
base.Initialize();
}