SFML community forums
Help => Window => Topic started by: kapesu8 on September 15, 2012, 03:40:01 pm
Title:
How would I find if sf::RenderWindow is focused?
Post by:
kapesu8
on
September 15, 2012, 03:40:01 pm
Like if I want to accept user input only when the window is focused..
How?
Title:
Re: How would I find if sf::RenderWindow is focused?
Post by:
Laurent
on
September 15, 2012, 03:56:25 pm
You must watch the GainedFocus and LostFocus events.