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

Author Topic: Mouse button problem  (Read 2338 times)

0 Members and 1 Guest are viewing this topic.

Kamaitachi

  • Newbie
  • *
  • Posts: 28
    • View Profile
Mouse button problem
« on: August 22, 2010, 11:30:04 pm »
Why won't this work?

Code: [Select]
if (Event.Type == sf::Event::MouseButtonPressed)
MousePress = true;

// Code...

if(MousePress == true)
{
       App.Draw(O);
       MousePress = false;
}

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Mouse button problem
« Reply #1 on: August 23, 2010, 09:18:14 am »
Because... :D

Maybe a "minimal code" could be easier to help you ;)
Mindiell
----

Kamaitachi

  • Newbie
  • *
  • Posts: 28
    • View Profile
Mouse button problem
« Reply #2 on: August 23, 2010, 08:54:00 pm »
What's a "minimal code"?

4ian

  • Hero Member
  • *****
  • Posts: 680
    • View Profile
    • Game Develop website
Mouse button problem
« Reply #3 on: August 23, 2010, 09:41:58 pm »
Check Mindiell's signature.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
Mouse button problem
« Reply #4 on: August 23, 2010, 10:15:05 pm »
Please, first read and use the tutorials before asking some questions to the forum.

 

anything