Exemple #1
0
// get data as soon as it comes in
void ofApp::connexionMoved(ConnexionData& data) {
    // this would be a good place to get data from multiple devices
    cout << data.getButton(0) << " " << data.getButton(1) << endl;
    
    // use the button state to set the LED
    ofxConnexion::setLed(data.getButton(0) || data.getButton(1));
}
Exemple #2
0
void testApp::connexionMoved(ConnexionData& data) {
	// just got the latest data
	// this would be a good place to get data from multiple devices
	
	// use the button state to set the LED
	ofxConnexion::setLed(data.getButton(0));
}
void testApp::connexionEvent(ConnexionData& data) {
	if(data.getButton(0))
		connexionCamera.startReset();
	isSlow = data.getButton(1);
}