Garry's Mod Wiki

Garry's Mod Wiki

  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 MOUSE enum.

Returns

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...