Hi
I'm quite new to SFML and atm trying to write myself a GUI for a game in want to make.
For that i need a checkbox, but that doesn't work the way i think it should.
my code:
if(mInFocus == true){
if(sf::Mouse::isButtonPressed(sf::Mouse::Left)){
if(ev->MouseButtonReleased){
mState = !mState;
}
}
}
it keeps changing the mState Value when the button is pressed down and the mouse is moved in the checkbox area(mInFocus == true).
the button release seems to be ignored as long as there are other mouse events like the movement.
Any idea what i could do to prevent that from happening?