CMoveData/KeyPressed

From Garry's Mod
Jump to: navigation, search
 CMoveData:KeyPressed( )

Description

Returns whether the key was pressed. If you want to check if the key is held down, try CMoveData:KeyDown

Arguments

number key

The key to test, see IN_ Enums

Returns

boolean

Was the key pressed or not.
Personal tools
Navigation