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

Pages: [1]
1
General / Re: MouseButtonReleased Event is spamming when moving the mouse
« on: February 23, 2016, 02:41:58 pm »
Quote
If the issue persists then my guess would be that you use outdated SFML header files, i.e. you updated the library files but didn't update the header files (or the other way around).

That was the problem! Thank you very much!!

2
General / Re: MouseButtonReleased Event is spamming when moving the mouse
« on: February 22, 2016, 04:03:05 pm »
Does no one knows whats the problem with my code? :(

3
General / MouseButtonReleased Event is spamming when moving the mouse
« on: February 21, 2016, 02:39:43 pm »
Hello guys,

my problem is that the mousebuttonreleased event does not work for me. Here is the code for my event loop
void Framework::events()
{
        while (mWindow->pollEvent(*mEvent))
        {
        switch (mEvent->type)
        {
            case sf::Event::MouseButtonReleased:
            {
                std::cout << "Test";

            } break;

            default:
                break;
        }
        }
}

When i start my program test gets spammed when i move the mouse but the funny thing is that when i release my left or right mouse button nothing happens. What am I doing wrong?

The events function is in my game loop here is the code for it
void Framework::run()
{
        while (mWindow->isOpen())
        {
        events();
        update();
                render();
        }
}
 


Pages: [1]
anything