Noticed gmod had no default functions for doing this and wrapped this together at a request. Figured someone could use it.
Useful if you want to simulate clicks on derma panels and the like.
mouse.Click(MouseCode) mouse.Press(MouseCode) mouse.Release(MouseCode)
MOUSE_LEFT MOUSE_RIGHT MOUSE_MIDDLE
Put gmcl_mouseclick.dll in lua/includes/modules
Do I even need one?
mouse.Press holds the button until mouse.Release is called.