SFML community forums
Help => General => Topic started by: mihaineken on April 01, 2013, 01:11:07 pm
-
Can anyone help me with a function that can count mouse left click's using SFML 2 ?
Thank you !
-
Read the tutorial and documentation about events.
-
Read the tutorial and documentation about events.
Yes, I've done that and I still dont know how to do it.
-
Well, what do you know then?
Do you know how to create a window?
Do you know how to use an event loop?
Do you know how to deal with the sf::Event::MouseButtonPressed?
Do you know how to increment a variable?
The tutorial covers each of these things (except the incrementation, but this is more than the basics of programming :D ) and this is all you need.
What don't you understand, and what do you already have? If you haven't even tried before asking for help, then you're using the internet wrong.
-
Please read also this thread (http://en.sfml-dev.org/forums/index.php?topic=5559.0).
-
Please give me that function if you know how to do it.This is all I need.Thank you !
-
Please give me that function if you know how to do it.This is all I need.Thank you !
Here it is, in the MouseButtonPressed and MouseButtonReleased events paragraph (http://www.sfml-dev.org/tutorials/2.0/window-events.php).
-
O.o