SFML community forums
Help => Window => Topic started by: Richy19 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
-
You can use events. Search for LostFocus and GainedFocus at http://www.sfml-dev.org/documentation/2.0/classsf_1_1Event.php#af41fa9ed45c02449030699f671331d4a