Skip to content

Commit

Permalink
fixes for mouseX, mouseY in ofBaseApp
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Whitfield committed Oct 21, 2011
1 parent b6a2150 commit c23a2cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ example/ofxFensterExample.xcodeproj/phwhitfield.pbxuser
example/ofxFensterExample.xcodeproj/phwhitfield.mode1v3
exampleMultipleGraphicCards/ofxFensterExample.xcodeproj/phwhitfield.pbxuser
exampleMultipleGraphicCards/ofxFensterExample.xcodeproj/phwhitfield.mode1v3

example/ofxFensterExample.xcodeproj/phwhitfield.mode1v3

example/ofxFensterExample.xcodeproj/phwhitfield.pbxuser
8 changes: 8 additions & 0 deletions src/ofxFensterManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,26 @@ class ofxFensterToOfBaseApp: public ofxFensterListener{
}

void mouseMoved( int x, int y ){
baseApp->mouseX = x;
baseApp->mouseY = y;
baseApp->mouseMoved(x, y);
}
void mouseDragged( int x, int y, int button ){
baseApp->mouseX = x;
baseApp->mouseY = y;
baseApp->mouseDragged(x, y, button);
}
void mousePressed( int x, int y, int button ){
baseApp->mouseX = x;
baseApp->mouseY = y;
baseApp->mousePressed(x, y, button);
}
void mouseReleased(){
baseApp->mouseReleased();
}
void mouseReleased(int x, int y, int button ){
baseApp->mouseX = x;
baseApp->mouseY = y;
baseApp->mouseReleased(x, y, button);
}

Expand Down

0 comments on commit c23a2cd

Please sign in to comment.