SFML community forums

Help => General => Topic started by: Felshire on February 18, 2012, 07:58:52 am

Title: How to get real mouse coordinates
Post by: Felshire on February 18, 2012, 07:58:52 am
How do you get the real mouse coordinates??

I know how to get the mouse coordinates relative to the window, but I need the coordinates from the (0,0) point of the actual game. (Not window)

Ive been trying for like 3 hours

:C
Title: How to get real mouse coordinates
Post by: Grimshaw on February 18, 2012, 08:37:15 am
Hint: the window has a function to convert local mouse coordinates to global ones according to the current view.

enjoy!
Title: How to get real mouse coordinates
Post by: Felshire on February 18, 2012, 09:20:49 am
NVM

TOOK ME 4 HOURS

But I finally got it

Might want to update document because it says nothing about event MouseButton