The different procedures for mouse input are:
mouseDragged() (Code is executed after mouse is moved when there is a button being held down)
mouseMoved() (Code is executed when the mouse is moved and there isn’t a button being held down)
mousePressed() (Code executes when a mouse button is pressed)
mouseReleased() (Code executes when a mouse button is released)