Garry's Mod Wiki

input.IsButtonDown

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 Enums/JOYSTICK

Arguments

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

Returns

1 boolean
Is the button down

Special Pages


Wikis

?

Render Time: 46ms

DB GetPage 27
Generate Html 4
SaveChanges (1) 5
Render Body 0
Render Sidebar 7