If/While Mouse Is Down

Within an onPress function I need to check whether the mouse is still down or if it has been released. I have searched but can find no neat way if doing this, is there one? Or will I need to use an onRelease function to detect it?