I create a button in the option menu, and I want keep the same key to the same button. Which is RightMouse button. I want to be able to click and set Fullscreen true and set it false after it loads, but I don't understand how to this is without it freaking out.
How do I keep the same key from clicking twice once the user clicked it. During the phase of changing enums? I have a button behind one enum that uses the exact same key, but it actives when I click a button to get to it.
if (option.Button1.Contains(MousePosition))
{
if (mouseState.RightButton == ButtonState.Pressed)
{
graphics.IsFullScreen = true;
graphics.ApplyChanges();
}
else if (mouseState.RightButton == ButtonState.Pressed)
{
graphics.IsFullScreen = false;
graphics.ApplyChanges();
}
}