Garry's Mod Wiki

GM:GUIMouseDoublePressed

  GM:GUIMouseDoublePressed( number mouseCode, Vector aimVector )

Description

Called when the mouse has been double clicked on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:ParentToHUD.

By default this hook calls GM:GUIMousePressed.

Arguments

1 number mouseCode
The code of the mouse button pressed, see MOUSE enum
2 Vector aimVector
A normalized vector pointing in the direction the client has clicked