input.GetKeyCode

From Garry's Mod
Jump to: navigation, search
 input.GetKeyCode( )

Description

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

Arguments

string button

The internal button name, such as "e" or "shift".

Returns

number

The button code, see BUTTON_CODE_ Enums.
Personal tools
Navigation