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

Author Topic: Checking The Mouse Position  (Read 13714 times)

0 Members and 1 Guest are viewing this topic.

[feuille/leaf]

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Checking The Mouse Position
« 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.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Checking The Mouse Position
« Reply #1 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/
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

[feuille/leaf]

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Checking The Mouse Position
« Reply #2 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.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Checking The Mouse Position
« Reply #3 on: July 03, 2016, 10:05:03 pm »
Click on the link that I posted and then click on "Javadoc".
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything