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 - zael2100

Pages: [1]
1
When i press a letter "sf::Event::KeyPressed" dont work but when i press arrow keys or ctr, alt it is responding.
I'm using Linux: Solus

void Game::processEvents()
{
    sf::Event event;
    while (mWindow.pollEvent(event));
    {
        switch (event.type)
        {
            case sf::Event::KeyPressed:
                handlePlayerInput(event.key.code, true);
                log("key pressed");
                break;
           
            case sf::Event::KeyReleased:
                handlePlayerInput(event.key.code, false);
                log("key released");
                break;

            case sf::Event::Closed:
                mWindow.close();
                break;
        }
    }
}
 

Pages: [1]
anything