Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

mousePressed equivalent of toggle button

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>