input/WasKeyReleased

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=WasKeyReleased |Parent=input |Description= |Realm=Client |IsClass=No }} ")
 
Line 2: Line 2:
 
|Name=WasKeyReleased
 
|Name=WasKeyReleased
 
|Parent=input
 
|Parent=input
|Description=
+
|Description=Gets whether a key was release in the same frame this function was called.
 
|Realm=Client
 
|Realm=Client
 
|IsClass=No
 
|IsClass=No
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=key
 +
|desc=Corresponds to {{EnumLink|KEY}}.
 +
}}
 +
{{Ret
 +
|type=boolean
 +
|desc=True if the key was released the same frame that this function was called, false otherwise.
 
}}
 
}}

Revision as of 02:40, 13 July 2013

 input.WasKeyReleased( )

Description

Gets whether a key was release in the same frame this function was called.

Arguments

number key

Corresponds to Template:EnumLink.

Returns

boolean

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