@Joshua_deLorimier_TR wrote:
Hi sorry for the amateur hour question but I haven't worked much with the mouse before I am trying to make a simple toggle box.
To toggle a bool with keyboard I would right this:
void ofApp::keyPressed(int key){
if(key == 'a'){
clicked = !clicked;
}So I wrote this and can't figure out why it doesn't work:
void ofApp::mousePressed(int x, int y, int button){
if(button == 0){
clicked = !clicked;
}}
Thanks in advance.
Posts: 1
Participants: 1