SFML community forums

Help => Window => Topic started by: Ockonal on July 11, 2010, 07:46:21 pm

Title: Cursor manipulation
Post by: Ockonal 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?