Determines whether the button is pressed
Call this member function to determine whether the button is pressed or not.