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...