Mouse cursor hidden in Tripod and Utility

Cursor is visible when GUI is visible
This commit is contained in:
James Alliban
2014-01-22 20:31:12 +00:00
parent 8ad8d65b44
commit c0a0d9b0a1
22 changed files with 37 additions and 11 deletions
+4 -3
View File
@@ -16,6 +16,7 @@ void DataManager::setup()
newData.push_back(dataObject);
}
subscriberDevName = "";
setupSpacebrew();
}
@@ -23,12 +24,12 @@ void DataManager::setup()
void DataManager::setupSpacebrew()
{
string host = "54.194.189.129"; // Spacebrew::SPACEBREW_CLOUD; // "localhost";
string name = "CRITICAL INFRASTRUCTURE UTILITY BOX DEV";
string name = "CRITICAL INFRASTRUCTURE UTILITY BOX" + subscriberDevName;
string description = "Description goes here. Not sure why. Let me know if you see this and tell me if you need it";
for (int i = 0; i < 30; i++)
{
spacebrew.addSubscribe("utilitydev_" + ofToString(i), Spacebrew::TYPE_STRING);
spacebrew.addSubscribe("utility_" + subscriberDevName + ofToString(i), Spacebrew::TYPE_STRING);
}
spacebrew.connect(host, name, description);
@@ -131,7 +132,7 @@ void DataManager::onMessage( Spacebrew::Message & m )
for (int i = 0; i < 30; i++)
{
if (m.name == "utilitydev_" + ofToString(i))
if (m.name == "utility" + subscriberDevName + "_" + ofToString(i))
{
//isPublisher0DataReceived = true;
newData[i] = dataObject;
+1
View File
@@ -50,4 +50,5 @@ class DataManager
float simulationSpeed;
float nextDataSendTime;
string subscriberDevName;
};
+5
View File
@@ -33,6 +33,11 @@ void testApp::update()
dataManager.update();
scene.update();
if(gui.isVisible)
ofShowCursor();
else
ofHideCursor();
}