Garry's Mod Wiki

input.WasMouseReleased

input.WasMouseReleased

  boolean input.WasMouseReleased( number key )

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

1 number key
The key to test, see Enums/MOUSE

Returns

1 boolean
True if the mouse key was released the same frame that this function was called, false otherwise.

Special Pages


Wikis

?

Render Time: 21ms

DB GetPage 2
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 7