SFML community forums

Help => Window => Topic started by: katrin on June 08, 2009, 02:30:30 pm

Title: set mouse cursor to position
Post by: katrin on June 08, 2009, 02:30:30 pm
hi

in my current programm, i need the mouse cursor to be visible at a certain point of the programm - no prob, just set Window.ShowMouse( true ) :D . so far so good but i aktually want the mouse cursor to appear at a defined position.

i know how to *get* the mouse cursor position but is there any way to *set* the mouse cursor position???

any help appreciated
Title: set mouse cursor to position
Post by: Nexus on June 08, 2009, 02:50:00 pm
Quote from: "katrin"
is there any way to *set* the mouse cursor position???
Hm, how would you call such a function? Maybe SetCursorPosition? Just read the documentation. ;)
Title: set mouse cursor to position
Post by: katrin on June 08, 2009, 04:04:17 pm
:oops: i aktually thought of something like this ... but i obviously looked at the wrong place in the documentation  ...

sorry to bother but thanx for your reply!
Title: set mouse cursor to position
Post by: Nexus on June 08, 2009, 04:28:15 pm
No problem. :)

Most functions and classes in SFML are named in a very intuitive way. The big part can be used without even reading the doc. For the others, the intellisense comment (MSVC) or the header file itsself gives a good guide.