hi all.
it is possible handle an input ( key press , mouse click , and so so.. ) while sf::renderWindow is in background ?
with this code doesn't work
sf::Event event;
while ( window.pollEvent(event) )
{
if ( event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::L )
{
// do things
}
}
it is work ony if window is focussed ! any idea ? ty in advance
C++ - sfml 2 - visual studio 10 & 12 - OS: windows 7