Garry's Mod Wiki

input.IsMouseDown

  boolean input.IsMouseDown( number mouseKey )

Description

Gets whether a mouse button is down

Arguments

1 number mouseKey
The key, see Enums/MOUSE

Returns

1 boolean
Is the key down