Change previous_ local variable type to boolean

And rename it to pressed_ for clarity; the variable represents whether
the mouse button is pressed