It is button detection using pen. Basically it finds the corner points, sites them in a list, and if the mouse is down it checks whether the mouse x and y are between the corners of the button. Btw, it is not the fastest since I set the “Clicking?” variable to “no” every frame