Those are some pretty detailed answers. I suggest looking on the left side of your screen (where all the arcade buttons denote topics), click on the interfaces button, then click on the mouse port section. You will find a detailed article about how these devices work and how to interface them.