Garry's Mod Wiki


boolean input.WasMouseDoublePressed( number button )


Returns whether a mouse key was double pressed in the same frame this function was called.

If this function returns true, input.WasMousePressed will return false.

This function only works in Move hooks, and will detect mouse events even in main menu or when a typing in a text field.


1 number button
The mouse button to test, see Enums/MOUSE


1 boolean
Whether the mouse key was double pressed or not.

Page Links

Special Pages



Render Time: 290ms

DB GetPage 256
Generate Html 2
SaveChanges (1) 12
Render Body 0
Render Sidebar 17