1
Window / Delayed input when key is held down
« on: November 29, 2010, 11:44:02 pm »
Ahh yes, it works now, thanks very much
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.
void ProcessKeyboard(sf::Event Event)
{
const sf::Input& input = window.GetInput();
if (input.IsKeyDown(sf::Key::Escape))
window.Close();
//old code
//if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::W))
//{
// new code
if (input.IsKeyDown(sf::Key::W))
{