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

Author Topic: set mouse cursor to position  (Read 3252 times)

0 Members and 1 Guest are viewing this topic.

katrin

  • Newbie
  • *
  • Posts: 17
    • View Profile
set mouse cursor to position
« 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

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
set mouse cursor to position
« Reply #1 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. ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

katrin

  • Newbie
  • *
  • Posts: 17
    • View Profile
set mouse cursor to position
« Reply #2 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!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
set mouse cursor to position
« Reply #3 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: