input.GetKeyName

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

Description

Gets the button name from a numeric button code. The name needs to be translated with language.GetPhrase before being displayed.

NOTE

Despite the name of the function, this also works for the full range of keys in BUTTON_CODE_ Enums.

Arguments

number button

The button, see BUTTON_CODE_ Enums.

Returns

string

Button name.
Personal tools
Navigation