16
Network / Re: Anyone here have a project made using SFML for networking?
« on: July 04, 2012, 09:12:52 am »
Thanks for the info! I will take a look at it more later on.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
QuoteNice to know another person who uses the library. We should have a guestbook-like feature somewhere but Tank is reluctant to make unneeded changes to the website.It's generally hard to make me working on any website things, as websites are boring.
Fine. But your code is still incorrect. If you tried something else, show me what you did.
Sorry but can you be a little clearer, and give more details please?
You tried what, what was the result, and what did you expect?
QuoteI am trying to place the mouse cursor in the middle of the screen and in window mode this isn't centered when the user right clicks to go into a mouse move mode to rotate the view....If you want to put the cursor in the middle of the screen (desktop), then you can:
- get the desktop size with sf::VideoMode::getDesktopMode()
- place the cursor relatively to the desktop with sf::Mouse::setPosition(p)
If you want to put the cursor in the middle of your window, then you can:
- get the window size with window.getSize()
- place the cursor relatively to the window with sf::Mouse::setPosition(p, window)