diff --git a/src/ofxPiMapper.cpp b/src/ofxPiMapper.cpp index b5d1972..af1ea0f 100644 --- a/src/ofxPiMapper.cpp +++ b/src/ofxPiMapper.cpp @@ -190,6 +190,10 @@ unsigned int ofxPiMapper::getNumSurfaces(){ return _application.getSurfaceManager()->getActivePreset()->getSurfaces().size(); } +int ofxPiMapper::getSelectedSurface(){ + return _application.getSurfaceManager()->getSelectedSurfaceIndex(); +} + void ofxPiMapper::setInfoText(string text){ _application.setInfoText(text); } diff --git a/src/ofxPiMapper.h b/src/ofxPiMapper.h index 2cd1425..7c8d433 100644 --- a/src/ofxPiMapper.h +++ b/src/ofxPiMapper.h @@ -47,6 +47,7 @@ class ofxPiMapper { // Surfaces, active preset unsigned int getNumSurfaces(); + int getSelectedSurface(); void selectSurface(int i); void togglePerspective(); void selectNextSurface();