예제 #1
0
void testApp::onMessage( Spacebrew::Message & m ) {
  
    //This receives the message and pushes the info into the vector
    if (m.name == "forOmerChat") {
        omerWritten.push_back(m.valueString());
        omerReceived = true;
    }
}
예제 #2
0
void motions::onMessage(Spacebrew::Message & m){
    if (m.name == "OF_read_rotate_alpha") {
        rotationRead.x = m.valueRange();
    }else if(m.name == "OF_read_rotate_beta"){
        rotationRead.y = m.valueRange();
    }else if(m.name == "OF_read_rotate_gamma"){
        rotationRead.z = m.valueRange();
    }else if(m.name == "OF_read_accel_x"){
        accelRead.x = m.valueRange();
    }else if(m.name == "OF_read_accel_y"){
        accelRead.y = m.valueRange();
    }else if(m.name == "OF_read_accel_z"){
        accelRead.z = m.valueRange();
    }
    
}
예제 #3
0
//--------------------------------------------------------------
void ofApp::onMessage( Spacebrew::Message & m ){
    if ( m.name == "backgroundOn" ){
        bBackgroundOn = m.valueBoolean();
    }
}
예제 #4
0
//--------------------------------------------------------------
void testApp::onMessage( Spacebrew::Message & m ){
    if ( m.name == "datadisplay" ){
        bSendSerialMessage = m.valueBoolean();
    }
}