Garry's Mod Wiki

input.IsButtonDown

  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