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

Author Topic: Cursor manipulation  (Read 2990 times)

0 Members and 1 Guest are viewing this topic.

Ockonal

  • 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;
winHandle.Create(handle);

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

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