input.WasMouseDoublePressed

From Garry's Mod
Jump to: navigation, search
 input.WasMouseDoublePressed( )

Description

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.

Arguments

number button

The mouse button to test, see MOUSE_ Enums

Returns

boolean

Whether the mouse key was double pressed or not.
Personal tools
Navigation