SFML community forums

Help => General => Topic started by: Canvas on January 17, 2014, 08:58:45 pm

Title: Mouse button press with mouse left checker is never true
Post by: Canvas on January 17, 2014, 08:58:45 pm
Hello there SFML people,

I'm trying to do a simple left mouse button check event, but every time I use my left button on my mouse the if statement is never true :( can anyone see why in my code?

if (eve.type == sf::Event::MouseButtonPressed)
         {
            if (eve.mouseButton.button == sf::Mouse::Left)
            {
            result = true;
            }
         }

the if statement is copied from the 2.1 tutorials

Regards,

Canvas
Title: Re: Mouse button press with mouse left checker is never true
Post by: Daddi on January 17, 2014, 09:00:09 pm
How do you check if its true?
Title: Re: Mouse button press with mouse left checker is never true
Post by: nebula on January 17, 2014, 09:56:16 pm
more code :D