Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How would I find if sf::RenderWindow is focused?  (Read 1298 times)

0 Members and 1 Guest are viewing this topic.

kapesu8

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
How would I find if sf::RenderWindow is focused?
« on: September 15, 2012, 03:40:01 pm »
Like if I want to accept user input only when the window is focused..

How?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: How would I find if sf::RenderWindow is focused?
« Reply #1 on: September 15, 2012, 03:56:25 pm »
You must watch the GainedFocus and LostFocus events.
Laurent Gomila - SFML developer

 

anything