Does IDE change application focus?

Started by
2 comments, last by IndyOfComo 10 years, 10 months ago

Please help me save my frontal lobe, not sure how many more collisions with the wall it can take!

In our XNA project we started with the RolePlayingGame starter kit and built/stripped/learned from there. Right now I am creating a screen and adding it to the ScreenManager. After adding it, Game.IsActive is false, which is supposedly indicating that another application has focus.

Is it possible that stepping through the code in my IDE is telling XNA that the game window doesn't have focus?

Here is my technical background info.
Advertisement

Is it possible that stepping through the code in my IDE is telling XNA that the game window doesn't have focus?

Yes, stepping through the code will cause IsActive to become false. I'm not sure if IsActive is evaluated immediately or if it's a flag that's updated internally once per update.

Is it possible that stepping through the code in my IDE is telling XNA that the game window doesn't have focus?

Yes, stepping through the code will cause IsActive to become false. I'm not sure if IsActive is evaluated immediately or if it's a flag that's updated internally once per update.

its a Windows Message isn't it? so a message from the OS will be received when you "Defocus" a window.

Well, that's just silly, but I understand. Thanks!

Here is my technical background info.

This topic is closed to new replies.

Advertisement