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

Author Topic: Changing the mouse cursor with sfml?  (Read 2730 times)

0 Members and 1 Guest are viewing this topic.

reddev86

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Changing the mouse cursor with sfml?
« on: December 28, 2010, 06:44:06 am »
yeah i can find out how to do that.

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Changing the mouse cursor with sfml?
« Reply #2 on: December 28, 2010, 10:08:35 am »
If you mean changing the cursor appearance you have to
> hide the cursor (once)
> get the cursor position
> display a custom sprite at this position

(There might be some other discussion about it.)
SFML / OS X developer

reddev86

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Changing the mouse cursor with sfml?
« Reply #3 on: December 28, 2010, 03:45:11 pm »
Quote from: "tntexplosivesltd"
sf::Window::SetCursorPosition().
http://www.sfml-dev.org/documentation/1.6/classsf_1_1Window.htm#369d1764893c6fde8979fcf04142dc55


thank you.

the other methods i needed were from sf::Window Class Reference
Code: [Select]
void SetCursorPosition (unsigned int Left, unsigned int Top)

void ShowMouseCursor (bool Show)




and Input from sf::Input class to get its position.



Code: [Select]
int GetMouseX ()
int GetMouseY ()

 

anything