Garry's Mod Wiki

Garry's Mod Wiki

  boolean input.IsButtonDown( number button )

Description

Gets whether the specified button code is down.

Unlike input.IsKeyDown this can also detect joystick presses from JOYSTICK enum

Arguments

1 number button
The button, valid values are in the range of BUTTON_CODE enum.

Returns

1 boolean
Is the button down

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...