Use of undeclared identifier 'mouseX'

I have a class where the top of the header looks like this:

  
#pragma once  
  
#include "ofMain.h"  
#include "ofxOpenCv.h"  
  
class ofxDTangible : public ofxCvBlob {  

I try to acces mouseX and mousY in the implementation but i get:

Use of undeclared identifier 'mouseX’

How can i get acces to them?

mouseX/Y only exist inside testApp, to access the x,y of the mouse from anywhere else you can use ofGetMouseX()

thanks :slight_smile: