SFML community forums

Help => Window => Topic started by: VanEldo on May 23, 2010, 08:39:58 pm

Title: Disable the mouse in Fullscreen Mode
Post by: VanEldo on May 23, 2010, 08:39:58 pm
Hi,

Is it possible to disable the mouse completely in Fullscreen Mode? It would be best if you wouldn't be able to use it as I'm programming a game, which is only controled by the keyboard.

greetz, Eldo . :)
Title: Disable the mouse in Fullscreen Mode
Post by: Laurent on May 23, 2010, 08:52:42 pm
You can hide it with window.ShowMouseCursor(false). Then there's no need to disable it, just don't use the mouse events/input in your program.
Title: Disable the mouse in Fullscreen Mode
Post by: VanEldo on May 24, 2010, 10:32:16 am
Thanks a lot Laurent :D. You are right, there is no need to disable it.
Keep on the great work!

greetz, Eldo.