CMoveData/KeyWasDown

From Garry's Mod
Jump to: navigation, search
 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