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

Author Topic: How to disable user input e.g. keyboard, mouse  (Read 4486 times)

0 Members and 1 Guest are viewing this topic.

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
How to disable user input e.g. keyboard, mouse
« on: January 01, 2012, 07:11:21 am »
I would  like to disable user input until after my splashscreens are done... Anyway to do this?

Thanks!

Neomex

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • Email
How to disable user input e.g. keyboard, mouse
« Reply #1 on: January 01, 2012, 12:17:03 pm »
Code: [Select]

if( Enabled )
{
//do input here
}

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
How to disable user input e.g. keyboard, mouse
« Reply #2 on: January 01, 2012, 04:41:09 pm »
Quote from: "Neomex"
Code: [Select]

if( Enabled )
{
//do input here
}


Ah no, I want SFML NOT to grab anymore system inputs from keyboards. I can hit my mouse and keyboard while the splash screens are cycling and before they are done I will not be at the main menu screen as the inputs have been registered and CECUI uses them and throws me two menus deep or whatever....

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
How to disable user input e.g. keyboard, mouse
« Reply #3 on: January 01, 2012, 04:46:55 pm »
Just don't react to the events?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
How to disable user input e.g. keyboard, mouse
« Reply #4 on: January 01, 2012, 04:48:05 pm »
Well I was hoping SFML 2.0 had something more like SDL had where you could Enable/Disable the keyboard or mouse events with a function call....

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
How to disable user input e.g. keyboard, mouse
« Reply #5 on: January 01, 2012, 05:04:25 pm »
It doesn't, but I don't see the big advantage anyway.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything