Do just what spinal Jack said but also save a reference to the rectangle used as the Rect() in drawButton. Then on the second click check the time and also check to see if the saved rect contains the mouseposition. If it does then it's a double click, if it's not then it's a different button click.
↧