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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Yoninde

Pages: [1]
1
Window / Events when the window is not focused
« on: April 17, 2015, 05:09:33 pm »
Hello. My question is, how make an event - event->type == sf::Event::TextEntered, when window is not focused? If I can't do this, can I use sf::Keyboard::isKeyPressed like a TextEntered, don't write like:
if( sf::Keyboard::isKeyPressed( sf::Keyboard::W ) ) text += "W";
but like in TextEntered,
text += static_cast<char>( event->text.unicode );

Pages: [1]
anything