Garry's Mod Wiki

Revision Difference

CUserCmd:KeyDown#518230

<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> <arg name="key" type="number">Bitflag representing which button to check, see <page>IN</page>.</arg> </args> <rets> <ret name="" type="boolean">Is key down or not</ret> </rets> </function>