SFML community forums

Bindings - other languages => Java => Topic started by: [feuille/leaf] on July 02, 2016, 04:31:58 pm

Title: Checking The Mouse Position
Post by: [feuille/leaf] on July 02, 2016, 04:31:58 pm
Hello everyone, I'm trying to create a basic game with JSFML but I don't know how to check the mouse position.

I've done this, but after i'm stucked I don't know what can I do.

if(event.type == Event.Type.MOUSE_MOVED)
{
}
 

I've already checked the tutoriels on the inputt here: https://github.com/pdinklag/JSFML/wiki/Input

Hope you'll help me to find a way to check the mouse position.

PS: Sorry if my english was bad.
Title: Re: Checking The Mouse Position
Post by: Hapax on July 02, 2016, 05:33:21 pm
The documentation for that is missing. That's because the website is no longer maintained as the Java binding in no longer maintained. However, there is a copy (preservation) of the website elsewhere where you will very likely find all the documentation you need:
https://jsfml.sfmlprojects.org/
Title: Re: Checking The Mouse Position
Post by: [feuille/leaf] on July 02, 2016, 06:35:43 pm
Thanks for your reply, but the problem is : There is no example of checking mouse position.
The documentation doesn't show it.
Title: Re: Checking The Mouse Position
Post by: Hapax on July 03, 2016, 10:05:03 pm
Click on the link that I posted and then click on "Javadoc".