Garry's Mod Wiki

Revision Difference

input.IsButtonDown#511677

<function name="IsButtonDown" parent="input" type="libraryfunc">⤶ <description>⤶ Gets whether the specified button code is down.⤶ ⤶ Unlike <page>input.IsKeyDown</page> this can also detect joystick presses from <page>JOYSTICK</page>⤶ </description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="button" type="number">The button, valid values are in the range of &lt;page&gt;BUTTON_CODE&lt;/page&gt;.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Is the button down</ret>⤶ </rets>⤶ </function>⤶ ⤶