Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
How would I find if sf::RenderWindow is focused?
Print
Pages: [
1
]
Author
Topic: How would I find if sf::RenderWindow is focused? (Read 1910 times)
0 Members and 1 Guest are viewing this topic.
kapesu8
Newbie
Posts: 32
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
How would I find if sf::RenderWindow is focused?
anything