|
|
@ -6,6 +6,7 @@ ofxSurfaceManagerGui::ofxSurfaceManagerGui() |
|
|
|
guiMode = ofxGuiMode::NONE; |
|
|
|
bDrag = false; |
|
|
|
registerMouseEvents(); |
|
|
|
ofHideCursor(); |
|
|
|
} |
|
|
|
|
|
|
|
ofxSurfaceManagerGui::~ofxSurfaceManagerGui() |
|
|
@ -182,6 +183,12 @@ void ofxSurfaceManagerGui::setMode(int newGuiMode) |
|
|
|
throw std::runtime_error("Trying to set invalid mode."); |
|
|
|
} |
|
|
|
|
|
|
|
if ( newGuiMode == ofxGuiMode::NONE ) { |
|
|
|
ofHideCursor(); |
|
|
|
} else { |
|
|
|
ofShowCursor(); |
|
|
|
} |
|
|
|
|
|
|
|
guiMode = newGuiMode; |
|
|
|
|
|
|
|
if ( guiMode == ofxGuiMode::SOURCE_SELECTION ) { |
|
|
|