input.WasMouseReleased

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

Description

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

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 key

The key to test, see MOUSE_ Enums

Returns

boolean

True if the mouse key was released the same frame that this function was called, false otherwise.
Personal tools
Navigation