Garry's Mod Wiki

Revision Difference

CUserCmd:KeyDown#514235

<function name="KeyDown" parent="CUserCmd" type="classfunc">⤶ <description>Returns true if the specified button(s) is pressed.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="key" type="number">Bitflag representing which button to check, see &lt;page&gt;IN&lt;/page&gt;.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Is key down or not</ret>⤶ </rets>⤶ </function>⤶ ⤶