hi...I think I have asked more than 2 question in this forum since yesterday...
anyways...
I want to have it so my mouse button received input is not received when it is pressed continuously
I know you can do it with event...but the code where the mouse input received is in another file
so I tried this code...
while (1)
{
if ( (sf::Mouse::isButtonPressed(sf::Mouse::Left)) && (!pressed) )
{
std::cout << "haha" << i++ << " " << pressed << std::endl;
pressed = true;
std::cout << pressed;
continue;
}
pressed = false;
}
even If I pressed the left mouse button...it didn't continue..I wonder why