SFML community forums
Bindings - other languages => Java => Topic started by: white2demon on January 21, 2015, 02:35:48 pm
-
Pls example use MouseEvent in java code.
I need that when I clicked on the field the action is. How to track a click of the mouse?
-
You can read the GitHub tutorial on it here: https://github.com/pdinklag/JSFML/wiki/Input (https://github.com/pdinklag/JSFML/wiki/Input)
You can also read the Javadoc here: http://jsfml.org/javadoc/org/jsfml/window/Mouse.html (http://jsfml.org/javadoc/org/jsfml/window/Mouse.html) and here: http://jsfml.org/javadoc/org/jsfml/window/event/Event.html (http://jsfml.org/javadoc/org/jsfml/window/event/Event.html)
Remember: the fun of programming is trying things out and solving problems. Google around before asking on a forum