Jump to content

  • Log In with Google      Sign In   
  • Create Account


Does IDE change application focus?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 IndyOfComo   Members   -  Reputation: 546

Like
0Likes
Like

Posted 11 June 2013 - 12:13 PM

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.

Sponsor:

#2 Nypyren   Crossbones+   -  Reputation: 4016

Like
0Likes
Like

Posted 11 June 2013 - 01:20 PM

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.

#3 Andy474   Members   -  Reputation: 668

Like
0Likes
Like

Posted 12 June 2013 - 02:27 AM

 

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.



#4 IndyOfComo   Members   -  Reputation: 546

Like
0Likes
Like

Posted 12 June 2013 - 07:10 AM

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


Here is my technical background info.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS