Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Check is window is focused
Print
Pages: [
1
]
Author
Topic: Check is window is focused (Read 2168 times)
0 Members and 1 Guest are viewing this topic.
Richy19
Full Member
Posts: 190
Check is window is focused
«
on:
September 06, 2012, 05:21:54 am »
Is there anyway to check if the window is focused?
I want to hidemouse/set mouse position to center only when it is focused
Logged
Hiura
SFML Team
Hero Member
Posts: 4321
Re: Check is window is focused
«
Reply #1 on:
September 06, 2012, 08:20:24 am »
You can use events. Search for LostFocus and GainedFocus at
http://www.sfml-dev.org/documentation/2.0/classsf_1_1Event.php#af41fa9ed45c02449030699f671331d4a
Logged
SFML / OS X developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Check is window is focused