You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Button.cpp, the doubleclickFound flag is not cleared until the next time the button is pressed. The Button::isDoubleClicked() member will return true every time it is called until the button is pressed again. The Button::isDoubleClicked() member could be used to clear the flag once it is read.
bool Button::isDoubleClicked(bool proc)
{
bool currentFlagState ;
if(proc) process();
currentFlagState = doubleclickFound; //-------- remember the current flag state
doubleclickFound = false; //-------- clear the doubleclickFound flag
return currentFlagState; //------------ return the actual dooubleclick state
}
The text was updated successfully, but these errors were encountered:
In Button.cpp, the doubleclickFound flag is not cleared until the next time the button is pressed. The Button::isDoubleClicked() member will return true every time it is called until the button is pressed again. The Button::isDoubleClicked() member could be used to clear the flag once it is read.
bool Button::isDoubleClicked(bool proc)
{
bool currentFlagState ;
if(proc) process();
currentFlagState = doubleclickFound; //-------- remember the current flag state
doubleclickFound = false; //-------- clear the doubleclickFound flag
return currentFlagState; //------------ return the actual dooubleclick state
}
The text was updated successfully, but these errors were encountered: