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 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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

Session 0
DB GetPage 3
Generate Html 7
SaveChanges 11
Render Body 0
Render Sidebar 7