Sharpcraft.Sharpcraft.OnDeactivated C# (CSharp) Method

OnDeactivated() protected method

Event handler for when the game loses focus.
Displays game menu to allow mouse movement when game is minimized/in the background.
protected OnDeactivated ( object sender, EventArgs args ) : void
sender object N/A (Not Used) (See XNA Documentation)
args System.EventArgs N/A (Not Used) (See XNA Documentation)
return void
        protected override void OnDeactivated(object sender, EventArgs args)
        {
            _gameMenuOpen = true;
            base.OnDeactivated(sender, args);
        }