SFML community forums

Help => Window => Topic started by: rcplusplus on June 08, 2012, 08:11:30 pm

Title: Get the x/y coordinates of a window
Post by: rcplusplus on June 08, 2012, 08:11:30 pm
I have a window that I'm using for a game, and I'm going to use the windows function ClipCursor()to confine the mouse to the window like make game do. However, I need to know how to get the coordinates of the window. I've looked through the documentation, but I can't seem to find it. Is there any way to do this? I plan on moving to mac later on, so cross-platform solutions would be best.
Title: Re: Get the x/y coordinates of a window
Post by: Laurent on June 08, 2012, 08:47:25 pm
Window::getPosition (SFML 2 only).