CMoveData/KeyWasDown

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
 
Line 2: Line 2:
 
|Name=KeyWasDown
 
|Name=KeyWasDown
 
|Parent=CMoveData
 
|Parent=CMoveData
|Description=Returns whether the key was down or not.<br/>
+
|Description=Returns whether the key was down or not.<br/><br/>
 
Unlike {{ClassFunction|CMoveData|KeyDown}}, it will return false if {{ClassFunction|CMoveData|KeyPressed}} is true and it will return true if {{ClassFunction|CMoveData|KeyReleased}} is true.
 
Unlike {{ClassFunction|CMoveData|KeyDown}}, it will return false if {{ClassFunction|CMoveData|KeyPressed}} is true and it will return true if {{ClassFunction|CMoveData|KeyReleased}} is true.
 
|Realm=Shared
 
|Realm=Shared

Latest revision as of 13:13, 7 December 2013

 CMoveData:KeyWasDown( )

Description

Returns whether the key was down or not.

Unlike CMoveData:KeyDown, it will return false if CMoveData:KeyPressed is true and it will return true if CMoveData:KeyReleased is true.

Arguments

number key

The key to test, seee IN_ Enums

Returns

boolean

Was the key down or not
Personal tools
Navigation