var mouse = new _mouse(image) // To create a mouse objectmouse.update // In your update scriptmouse.render // In your render scriptmouse.isMouseOver(x, y, w, h, object) // If mouse is over x,y,w,h returns true. If you also specify an object that object will be targeted by the mouse for further actionsyour_object.leftOnPress = function() {}your_object.leftOnHold = function() {}your_object.leftOnRelease = function() {}your_object.rightOnPress = function() {}your_object.rightOnHold = function() {} // Specify the function calls INSIDE your desired objectyour_object.rightOnRelease = function() {}your_object.middleOnPress = function() {}your_object.middleOnHold = function() {}your_object.middleOnRelease = function() {}// For the above you MUST run .isMouseOver() with the object included as this will mean the mouse will call the appropriate function from inside that objectyour_object.heldLag // If you want a delay between performing actions for the ""onHold functions. Every itteration is too much for most onHold functions