SFML community forums

Help => Window => Topic started by: Heryon on February 02, 2017, 09:21:24 pm

Title: Fullscreen Style
Post by: Heryon on February 02, 2017, 09:21:24 pm
Hi, I wanted to know : is
sf::Style::Fullscreen
a real fullscreen or a windowed fullscreen ? Because it lets the mouse get out of the window, but I thought it was only for windowed fullscreen.
Title: Re: Fullscreen Style
Post by: eXpl0it3r on February 02, 2017, 10:29:44 pm
Mouse capturing is not a property of fullscreen mode. sf::Fullscreen is proper fullscreen. You can get a borderless window mode, by using sf::Style::None and setting the proper window size.
For mouse capturing see the dedicated function setMouseCursorGrabbed (http://www.sfml-dev.org/documentation/2.4.1/classsf_1_1Window.php#a5b4ef8ede77531e17b7a0287fa6ff9ce)