Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 24ms

Session 0
DB GetPage 4
Generate Html 1
SaveChanges 11
Render Body 0
Render Sidebar 6