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