Garry's Mod Wiki

input.GetKeyName

input.GetKeyName

string input.GetKeyName( number button )

Description

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

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

Arguments

1 number button
The button, see Enums/BUTTON_CODE.

Returns

1 string
Button name.

Special Pages


Wikis

?

Render Time: 44ms

DB GetPage 25
Generate Html 5
SaveChanges (1) 5
Render Body 0
Render Sidebar 7