devel/framework/inputmanager.cpp
/// only for left and right mouse buttons
only for left and right mouse buttons
only for left and right mouse buttons
void CInputManager::updateMouseButtonsRelease() {
    bool down;
    mMBLeftReleased = false;
    mMBRightReleased = false;
    down = mMouseState->buttonDown( OIS::MB_Left );
    if( down ) {
        mMBLeftWasPressed = true;
    } else {
        if( mMBLeftWasPressed ) mMBLeftReleased = true;
        mMBLeftWasPressed = false;
    }
    down = mMouseState->buttonDown( OIS::MB_Right );
    if( down ) {
        mMBRightWasPressed = true;
    } else {
        if( mMBRightWasPressed ) mMBRightReleased = true;
        mMBRightWasPressed = false;
    }
}
void CInputManager :: updateMouseButtonsRelease ( ) { bool down ; mMBLeftReleased = false ; mMBRightReleased = false ; down = mMouseState -> buttonDown ( OIS :: MB_Left ) ; if ( down ) { mMBLeftWasPressed = true ; } else { if ( mMBLeftWasPressed ) mMBLeftReleased = true ; mMBLeftWasPressed = false ; } down = mMouseState -> buttonDown ( OIS :: MB_Right ) ; if ( down ) { mMBRightWasPressed = true ; } else { if ( mMBRightWasPressed ) mMBRightReleased = true ; mMBRightWasPressed = false ; } }
only for left and right mouse buttons
only for left and right mouse buttons