Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Disable the mouse in Fullscreen Mode  (Read 2784 times)

0 Members and 1 Guest are viewing this topic.

VanEldo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Disable the mouse in Fullscreen Mode
« 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 . :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Disable the mouse in Fullscreen Mode
« Reply #1 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.
Laurent Gomila - SFML developer

VanEldo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Disable the mouse in Fullscreen Mode
« Reply #2 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.