input.IsButtonDown

From Garry's Mod
Jump to: navigation, search
 input.IsButtonDown( )

Description

Gets whether the specified button code is down.

Unlike input.IsKeyDown this can also detect joystick presses from JOYSTICK_ Enums

Arguments

number button

The button, valid values are in the range of BUTTON_CODE_ Enums.

Returns

boolean

Is the button down
Personal tools
Navigation