Garry's Mod Wiki

CUserCmd:GetButtons

  number CUserCmd:GetButtons()

Description

Returns a bitflag indicating which buttons are pressed.

Returns

1 number
Pressed buttons, see IN enum