Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Add Listener to ofxToggle

$
0
0

@matteo wrote:

Hi!
I’m getting the error “ofAddListener’: no overloaded function takes 4 arguments” when I try to add a listener to a ofxToggle. Do you know where I’m wrong? Thanks.

void ofApp::update(){
	...
	rubber.addListener(this, &ofApp::rubberClicked);
	...
}

void ofApp::rubberClicked(bool toggleValue) {
	cout << "rubber" << endl;
}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles