Garry's Mod Wiki

Revision Difference

input.GetKeyCode#511679

<function name="GetKeyCode" parent="input" type="libraryfunc">⤶ <description>Gets the button code from a button name. This is opposite of <page>input.GetKeyName</page>.</description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="button" type="string">The internal button name, such as &quot;e&quot; or &quot;shift&quot;.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The button code, see <page>BUTTON_CODE</page>.</ret>⤶ </rets>⤶ </function>⤶ ⤶