Help => System => Topic started by: Mbass on January 07, 2017, 11:47:45 pm
Title: MouseLeft executed
Post by: Mbass on January 07, 2017, 11:47:45 pm
Hey, i'm printing something, if i click on the left mouse button. But if i press the key 'D' the left mouse button is executing.
if (event.mouseButton.button == sf::Mouse::Left) { std::cout << "MouseClick" << std::endl;
}
If i click 'D' it prints in the console MouseClick....
Whats the reason?
Title: Re: MouseLeft executed
Post by: eXpl0it3r on January 08, 2017, 12:27:24 am
You most likely didn't follow the tutorial (http://www.sfml-dev.org/tutorials/2.4/window-events.php) that explains how to properly handle events. But with out a complete and minimal example, who knows. :D