I need to find out how to mod a mouse click.

Example I want to know how the click of the mouse works.. electritity? Pressure? so forth... I want to then map this click out onto a wire so I can rig a two finger devise that lets me press my thumb and index finger together.

This is just so I can find out how to make the item as then I plan to mod a gyro mouse or something else to make gloves and stuff.... Please help..
I am looking for documents pdfs websites anything that will let me learn this stuff, besides college :P