Garry's Mod Wiki

PANEL:OnMousePressed

PANEL:OnMousePressed

  boolean PANEL:OnMousePressed( number keyCode )

Description

Called whenever a mouse key was pressed while the panel is focused.

Arguments

1 number keyCode
They key code of the key pressed, see Enums/MOUSE.

Returns

1 boolean
Return true to suppress default action such as right click opening edit menu for DTextEntry.

Special Pages


Wikis

?

Render Time: 64ms

DB GetPage 42
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 6