Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: MouseLeft executed  (Read 3680 times)

0 Members and 1 Guest are viewing this topic.

Mbass

  • Newbie
  • *
  • Posts: 7
    • View Profile
MouseLeft executed
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: MouseLeft executed
« Reply #1 on: January 08, 2017, 12:27:24 am »
You most likely didn't follow the tutorial that explains how to properly handle events. But with out a complete and minimal example, who knows. :D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything