Garry's Mod Wiki

Garry's Mod Wiki

  number input.GetKeyCode( string button )

Description

Gets the button code from a button name. This is opposite of input.GetKeyName.

Arguments

1 string button
The internal button name, such as e or ⇧ shift.

Returns

1 number with BUTTON_CODE enum
The button code, see BUTTON_CODE enum.

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