if (event.MouseButtonEvent.button == sf::Mouse::Left){
std::cout << "The left mouse button was pressed at X=" << event.MouseButtonEvent.x
<< "Y=" << event.MouseButtonEvent.y<< "." << std::endl;
}
This is my code...
I got three errors, for all the places I used MouseButtonEvent. They all of which show the same error:
invalid use of 'struct sf::Event::MouseButtonEvent'
Can somebody tell me where I'm going wrong..
Thank You