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

Show Posts

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.


Messages - Borek23

Pages: [1]
1
General / Re: Getting mouse position.
« on: May 07, 2012, 09:56:53 pm »
Thanks mate, problem solved  ;)

2
General / Getting mouse position.
« on: May 07, 2012, 08:38:12 pm »
Hi! I'm looking for my answer for about 2 days and still nothing. How to get mouse position even if in console in SMFL 2?
 That's what i get :


Even if I change mouse position it would still be the same...  There's piece of code :
sf::Vector2i Mousepos;
Mousepos = sf::Mouse::getPosition(myWindow);

sf::Event event;
        if(event.type == sf::Event::MouseMoved)
        {
            cout << "Mouse position " << Mousepos.x << "\t " << Mousepos.y << endl;
        }
 

How can I change these positions ?
Sorry for mistakes...

Pages: [1]
anything