Exemplo n.º 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;
    }
}
Exemplo n.º 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();
    }
    
}
Exemplo n.º 3
0
//--------------------------------------------------------------
void ofApp::onMessage( Spacebrew::Message & m ){
    if ( m.name == "backgroundOn" ){
        bBackgroundOn = m.valueBoolean();
    }
}
Exemplo n.º 4
0
//--------------------------------------------------------------
void testApp::onMessage( Spacebrew::Message & m ){
    if ( m.name == "datadisplay" ){
        bSendSerialMessage = m.valueBoolean();
    }
}