Quantcast
Viewing all articles
Browse latest Browse all 40524

mousePressed equivalent of toggle button

This is working fine for me when pressing the left mouse button.
void ofApp::mousePressed(int x, int y, int button){
if (button == 0) {
clicked = !clicked;
cout << clicked << endl;
}
}

Maybe something else is going wrong? Could you post more code concerning your issue?


Viewing all articles
Browse latest Browse all 40524

Trending Articles