Garry's Mod Wiki

GM:VGUIMousePressed

  GM:VGUIMousePressed( Panel pnl, number mouseCode )

Description

Called when a mouse button is pressed on a VGUI element or menu.

Arguments

1 Panel pnl
Panel that currently has focus.
2 number mouseCode
The key that the player pressed using MOUSE enum.