p/videojoiner/VideoJoiner.cpp
///************************Funcion que lee los eventos del mouse
Funcion que lee los eventos del mouse
Funcion que lee los eventos del mouse
void mouseEventSource(int event, int x, int y, int flags, void* param) 
{                    
     if  ( event == EVENT_LBUTTONDOWN )
     {
          cout << "Left button of the mouse is clicked - position (" << x << ", " << y << ")" << endl;
		  mpt.x=x; mpt.y=y;
     }
     else if  ( event == EVENT_RBUTTONDOWN )
     {
          cout << "Right button of the mouse is clicked - position (" << x << ", " << y << ")" << endl;
     }
     else if  ( event == EVENT_MBUTTONDOWN )
     {
          cout << "Middle button of the mouse is clicked - position (" << x << ", " << y << ")" << endl;
     }
}
void mouseEventSource ( int event , int x , int y , int flags , void * param ) { if ( event == EVENT_LBUTTONDOWN ) { cout << " " << x << " " << y << " " << endl ; mpt . x = x ; mpt . y = y ; } else if ( event == EVENT_RBUTTONDOWN ) { cout << " " << x << " " << y << " " << endl ; } else if ( event == EVENT_MBUTTONDOWN ) { cout << " " << x << " " << y << " " << endl ; } }
Funcion que lee los eventos del mouse
Funcion que lee los eventos del mouse
/*
     else if ( event == EVENT_MOUSEMOVE )
     {
          cout << "Mouse move over the window - position (" << x << ", " << y << ")" << endl;

     }		
*/