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

Author Topic: Cursor manipulation  (Read 3000 times)

0 Members and 1 Guest are viewing this topic.


  • Jr. Member
  • **
  • Posts: 58
    • ICQ Messenger - 449909010
    • View Profile
    • WinCode
Cursor manipulation
« on: July 11, 2010, 07:46:21 pm »
Hello, I'm using SFML with Ogre. I'm taking the handle like this:
Code: [Select]
size_t handle;
OgreWindow->getCustomAttribute("WINDOW", &handle);
sf::Window winHandle;

Now I need to hide cursor and move it to the center of the window:
Code: [Select]
winHandle.SetCursorPosition(GetWidth()/2, GetHeight()/2);

But nothing happens. Native SFML events work fine. What's wrong is there?
Developing 2d engine&game using: sfml, box2d, librocket, spark2, zoom&zoost, thor