SFML community forums

Help => Window => Topic started by: Mars_999 on January 01, 2012, 07:11:21 am

Title: How to disable user input e.g. keyboard, mouse
Post by: Mars_999 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!
Title: How to disable user input e.g. keyboard, mouse
Post by: Neomex on January 01, 2012, 12:17:03 pm
Code: [Select]

if( Enabled )
{
//do input here
}
Title: How to disable user input e.g. keyboard, mouse
Post by: Mars_999 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....
Title: How to disable user input e.g. keyboard, mouse
Post by: Nexus on January 01, 2012, 04:46:55 pm
Just don't react to the events?
Title: How to disable user input e.g. keyboard, mouse
Post by: Mars_999 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....
Title: How to disable user input e.g. keyboard, mouse
Post by: Nexus on January 01, 2012, 05:04:25 pm
It doesn't, but I don't see the big advantage anyway.