input.WasKeyReleased

From Garry's Mod
Revision as of 03:18, 24 July 2016 by Zerf (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 input.WasKeyReleased( )

Description

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

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

Arguments

number key

The key, see KEY_ Enums.

Returns

boolean

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