Skip to main content
GameDev.net gamedev.net
🔒 Locked

Does IDE change application focus?

Started by IndyOfComo Jun 11, 2013 at 6:13 PM 2 replies 1.1k views
Original Post
IndyOfComo
IndyOfComo

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.
Nypyren
Nypyren

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.
Andy474
Andy474

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.

IndyOfComo
IndyOfComo

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

Here is my technical background info.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.