1
General / Mouse Button Pressed and then Moved
« on: June 16, 2020, 01:53:14 pm »
Hi there.
I want my program to detect the following event: Mouse Button Pressed + Mouse Moved
I tried this way:
But this does not seem to be the thing I want. Any help would be appreciated. Thanks in advance.
I want my program to detect the following event: Mouse Button Pressed + Mouse Moved
I tried this way:
case sf::Event::MouseMoved:
if (sf::Mouse::isButtonPressed) {
DoStuff();
}
break;
if (sf::Mouse::isButtonPressed) {
DoStuff();
}
break;
But this does not seem to be the thing I want. Any help would be appreciated. Thanks in advance.