Garry's Mod Wiki

input.GetKeyCode

input.GetKeyCode

  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
The button code, see Enums/BUTTON_CODE.

Special Pages


Wikis

?

Render Time: 93ms

DB GetPage 44
Generate Html 3
SaveChanges (1) 38
Render Body 0
Render Sidebar 6