testbed/src/Scene.cpp
bool Scene::mouseButtonEvent(int /*button*/, bool down, int /*mods*/, double mousePosX, double mousePosY) {

    // If the mouse button is pressed
    if (down) {
        mLastMouseX = mousePosX;
        mLastMouseY = mousePosY;
    }

    return true;
}
// Called when a mouse button event occurs
Called when a mouse button event occurs
Called when a mouse button event occurs
bool Scene::mouseButtonEvent(int , bool down, int , double mousePosX, double mousePosY) {
    if (down) {
        mLastMouseX = mousePosX;
        mLastMouseY = mousePosY;
    }
    return true;
}
bool Scene :: mouseButtonEvent ( int , bool down , int , double mousePosX , double mousePosY ) { if ( down ) { mLastMouseX = mousePosX ; mLastMouseY = mousePosY ; } return true ; }
Called when a mouse button event occurs
Called when a mouse button event occurs
/*button*/ /*mods*/ // If the mouse button is pressed